Public Member Functions | List of all members
sdf::v8::AssertionInternalError Class Reference

Class for generating Exceptions which come from sdf assertions. More...

#include <common/common.hh>

Inheritance diagram for sdf::v8::AssertionInternalError:
Inheritance graph
[legend]

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. More...
 
virtual ~AssertionInternalError ()
 Destructor. More...
 
- Public Member Functions inherited from sdf::v8::InternalError
 InternalError ()
 Constructor. More...
 
 InternalError (const char *_file, std::int64_t _line, const std::string _msg)
 Default constructor. More...
 
virtual ~InternalError ()
 Destructor. More...
 
- Public Member Functions inherited from sdf::v8::Exception
 Exception ()
 Constructor. More...
 
 Exception (const char *_file, std::int64_t _line, std::string _msg)
 Default constructor. More...
 
 Exception (const Exception &_e)
 Copy constructor. More...
 
 Exception (Exception &&_e) noexcept
 Move constructor. More...
 
virtual ~Exception ()
 Destructor. More...
 
std::string GetErrorFile () const
 Return the error function. More...
 
std::string GetErrorStr () const
 Return the error string. More...
 
Exceptionoperator= (const Exception &_exception)
 Assignment operator. More...
 
Exceptionoperator= (Exception &&_exception)
 Move assignment operator. More...
 
void Print () const
 Print the exception to std out. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AssertionInternalError()

sdf::v8::AssertionInternalError::AssertionInternalError ( const char *  _file,
std::int64_t  _line,
const std::string  _expr,
const std::string  _function,
const std::string  _msg = "" 
)

Constructor for assertions.

Parameters
[in]_fileFile name
[in]_lineLine number where the error occurred
[in]_exprAssertion expression failed resulting in an internal error
[in]_functionFunction where assertion failed
[in]_msgFunction where assertion failed

◆ ~AssertionInternalError()

virtual sdf::v8::AssertionInternalError::~AssertionInternalError ( )
virtual

Destructor.


The documentation for this class was generated from the following file: