Class for generating Exceptions which come from sdf assertions. More...
#include <common/common.hh>
Inherits sdf::SDF_VERSION_NAMESPACE::InternalError.
Public Member Functions | |
AssertionInternalError (const char *_file, std::int64_t _line, const std::string _expr, const std::string _function, const std::string _msg="") | |
Constructor for assertions. | |
virtual | ~AssertionInternalError () |
Destructor. | |
Public Member Functions inherited from sdf::SDF_VERSION_NAMESPACE::InternalError | |
InternalError () | |
Constructor. | |
InternalError (const char *_file, std::int64_t _line, const std::string _msg) | |
Default constructor. | |
virtual | ~InternalError () |
Destructor. | |
Public Member Functions inherited from sdf::SDF_VERSION_NAMESPACE::Exception | |
Exception () | |
Constructor. | |
Exception (const char *_file, std::int64_t _line, std::string _msg) | |
Default constructor. | |
Exception (const Exception &_e)=default | |
Copy constructor. | |
Exception (Exception &&_e) noexcept=default | |
Move constructor. | |
virtual | ~Exception ()=default |
Destructor. | |
std::string | GetErrorFile () const |
Return the error function. | |
std::string | GetErrorStr () const |
Return the error string. | |
Exception & | operator= (const Exception &_exception)=default |
Assignment operator. | |
Exception & | operator= (Exception &&_exception) noexcept=default |
Move assignment operator. | |
void | Print () const |
Print the exception to std out. | |
Class for generating Exceptions which come from sdf assertions.
They include information about the assertion expression violated, function where problem appeared and assertion debug message.
sdf::SDF_VERSION_NAMESPACE::AssertionInternalError::AssertionInternalError | ( | const char * | _file, |
std::int64_t | _line, | ||
const std::string | _expr, | ||
const std::string | _function, | ||
const std::string | _msg = "" |
||
) |
Constructor for assertions.
[in] | _file | File name |
[in] | _line | Line number where the error occurred |
[in] | _expr | Assertion expression failed resulting in an internal error |
[in] | _function | Function where assertion failed |
[in] | _msg | Function where assertion failed |
|
virtual |
Destructor.