AssertionInternalError Class Reference

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

#include <common/common.hh>

Inherits InternalError.

Public Member Functions

 AssertionInternalError (const char *_file, int _line, const std::string &_expr, const std::string &_function, const std::string &_msg="")
 Constructor for assertions. More...
 
virtual ~AssertionInternalError ()
 Destructor. More...
 
std::string GetErrorFile () const
 Return the error function. More...
 
std::string GetErrorStr () const
 Return the error string. More...
 
void Print () const
 Print the exception to std out. More...
 

Detailed Description

Class for generating Exceptions which come from gazebo assertions.

They include information about the assertion expression violated, function where problem appeared and assertion debug message.

Constructor & Destructor Documentation

§ AssertionInternalError()

AssertionInternalError ( const char *  _file,
int  _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 ~AssertionInternalError ( )
virtual

Destructor.

Member Function Documentation

§ GetErrorFile()

std::string GetErrorFile ( ) const
inherited

Return the error function.

Returns
The error function name

§ GetErrorStr()

std::string GetErrorStr ( ) const
inherited

Return the error string.

Returns
The error string

§ Print()

void Print ( ) const
inherited

Print the exception to std out.


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