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.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Public Member Functions | List of all members
xtd::tunit::assert_error Class Reference

#include <assert_error.h>

Definition

Exception thow when an assertion failed.

Namespace
xtd::tunit
Library
xtd.tunit

Inherits std::exception.

Public Member Functions

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

Constructor & Destructor Documentation

◆ assert_error() [1/2]

xtd::tunit::assert_error::assert_error ( const xtd::ustring 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: