My Project
|
Exception to indicate errors during shutdown. More...
#include <unity/UnityExceptions.h>
Public Member Functions | |
ShutdownException (std::string const &reason) | |
Constructs the exception. More... | |
virtual char const * | what () const noexceptoverride |
Returns the fully-qualified name of the exception. | |
virtual std::exception_ptr | self () const override |
Returns a std::exception_ptr to this . | |
![]() | |
std::string | reason () const |
Returns the reason set by the derived class's constructor (empty string if none). More... | |
std::string | to_string (std::string const &indent=" ") const |
Returns a string describing the exception, including any exceptions that were nested or chained. More... | |
std::string | to_string (int indent_level, std::string const &indent) const |
Returns a string describing the exception, including any exceptions that were nested or chained. More... | |
std::exception_ptr | remember (std::exception_ptr earlier_exception) |
Adds an exception to the exception history chain. More... | |
std::exception_ptr | get_earlier () const noexcept |
Returns the previous exception. More... | |
Additional Inherited Members | |
![]() | |
ExceptionImplBase * | pimpl () const noexcept |
Returns a pointer to to the implementation instance. | |
Exception to indicate errors during shutdown.
Usually, it is not possible to handle or recover from errors that arise during shutdown. This exception is thrown once all possible shutdown actions have been carried out and provides information about anything that went wrong via the exception chaining mechanism of the unity::Exception base class.
|
explicitdefault |
Constructs the exception.
reason | Further details about the cause of the exception. |