Class AssertionException

Inheritance Relationships

Base Type

  • public std::exception

Class Documentation

class AssertionException : public std::exception

An assertion-like exception for halting tests if conditions are not met.

Public Functions

explicit AssertionException(const char *msg)

Constructor for AssertionException.

Parameters:

msg[in] The message to display when this exception is thrown.

virtual const char *what() const noexcept

Get the message description of why this exception was thrown.

Returns:

The string message