xtd.tunit - Reference Guide  1.0.0
Modern c++17 unit testing framework on Windows, macOS, Linux, iOS and android.
xtd::tunit::assert_error Class Reference

Exception thow when an assertion failed. More...

#include <assert_error.h>

Inheritance diagram for xtd::tunit::assert_error:

Public Member Functions

 assert_error (const std::string &message)
 Create a new instance of assert_error class. More...
 
 assert_error (const char *message)
 Create a new instance of assert_error class. More...
 
const char * what () const noexcept
 Returns a string that represents the current assert_error. More...
 

Detailed Description

Exception thow when an assertion failed.

Constructor & Destructor Documentation

§ assert_error() [1/2]

xtd::tunit::assert_error::assert_error ( const std::string &  message)
inlineexplicit

Create a new instance of assert_error class.

Parameters
messageMessage string associate to the error.

§ assert_error() [2/2]

xtd::tunit::assert_error::assert_error ( const char *  message)
inlineexplicit

Create a new instance of assert_error class.

Parameters
messageMessage string associate to the error.

Member Function Documentation

§ what()

const char* xtd::tunit::assert_error::what ( ) const
inlinenoexcept

Returns a string that represents the current assert_error.

Returns
string A string that represents the current assert_error.

The documentation for this class was generated from the following file: