Public Member Functions | List of all members
sdf::SDF_VERSION_NAMESPACE::Exception Class Reference

Class for generating exceptions. More...

#include <common/common.hh>

Inherited by sdf::SDF_VERSION_NAMESPACE::InternalError.

Public Member Functions

 Exception ()
 Constructor. More...
 
 Exception (const char *_file, std::int64_t _line, std::string _msg)
 Default constructor. More...
 
 Exception (const Exception &_e)=default
 Copy constructor. More...
 
 Exception (Exception &&_e) noexcept=default
 Move constructor. More...
 
virtual ~Exception ()=default
 Destructor. More...
 
std::string GetErrorFile () const
 Return the error function. More...
 
std::string GetErrorStr () const
 Return the error string. More...
 
Exceptionoperator= (const Exception &_exception)=default
 Assignment operator. More...
 
Exceptionoperator= (Exception &&_exception) noexcept=default
 Move assignment operator. More...
 
void Print () const
 Print the exception to std out. More...
 

Detailed Description

Class for generating exceptions.

Constructor & Destructor Documentation

◆ Exception() [1/4]

sdf::SDF_VERSION_NAMESPACE::Exception::Exception ( )

Constructor.

◆ Exception() [2/4]

sdf::SDF_VERSION_NAMESPACE::Exception::Exception ( const char *  _file,
std::int64_t  _line,
std::string  _msg 
)

Default constructor.

Parameters
[in]_fileFile name
[in]_lineLine number where the error occurred
[in]_msgError message

◆ Exception() [3/4]

sdf::SDF_VERSION_NAMESPACE::Exception::Exception ( const Exception _e)
default

Copy constructor.

Parameters
[in]_eException to copy.

◆ Exception() [4/4]

sdf::SDF_VERSION_NAMESPACE::Exception::Exception ( Exception &&  _e)
defaultnoexcept

Move constructor.

Parameters
[in]_eException to move.

◆ ~Exception()

virtual sdf::SDF_VERSION_NAMESPACE::Exception::~Exception ( )
virtualdefault

Destructor.

Member Function Documentation

◆ GetErrorFile()

std::string sdf::SDF_VERSION_NAMESPACE::Exception::GetErrorFile ( ) const

Return the error function.

Returns
The error function name

◆ GetErrorStr()

std::string sdf::SDF_VERSION_NAMESPACE::Exception::GetErrorStr ( ) const

Return the error string.

Returns
The error string

◆ operator=() [1/2]

Exception& sdf::SDF_VERSION_NAMESPACE::Exception::operator= ( const Exception _exception)
default

Assignment operator.

Parameters
[in]_exceptionThe exception to set values from.
Returns
*this

◆ operator=() [2/2]

Exception& sdf::SDF_VERSION_NAMESPACE::Exception::operator= ( Exception &&  _exception)
defaultnoexcept

Move assignment operator.

Parameters
[in]_exceptionException to move.
Returns
Reference to this.

◆ Print()

void sdf::SDF_VERSION_NAMESPACE::Exception::Print ( ) const

Print the exception to std out.


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