xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Public Member Functions | List of all members
xtd::tunit::assert_error Class Reference

Exception thow when an assertion failed. More...

#include <assert_error.h>

Inheritance diagram for xtd::tunit::assert_error:
Inheritance graph
[legend]
Collaboration diagram for xtd::tunit::assert_error:
Collaboration graph
[legend]

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.

Library
xtd.tunit

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: