Public Member Functions | Private Attributes | Friends | List of all members
karto::Exception Class Reference

#include <Karto.h>

Public Member Functions

 Exception (const Exception &rException)
 
 Exception (const std::string &rMessage="Karto Exception", kt_int32s errorCode=0)
 
kt_int32s GetErrorCode ()
 
const std::string & GetErrorMessage () const
 
Exceptionoperator= (const Exception &rException)
 
virtual ~Exception ()
 

Private Attributes

kt_int32s m_ErrorCode
 
std::string m_Message
 

Friends

KARTO_EXPORT std::ostream & operator<< (std::ostream &rStream, Exception &rException)
 

Detailed Description

Exception class. All exceptions thrown from Karto will inherit from this class or be of this class

Definition at line 99 of file Karto.h.

Constructor & Destructor Documentation

◆ Exception() [1/2]

karto::Exception::Exception ( const std::string &  rMessage = "Karto Exception",
kt_int32s  errorCode = 0 
)
inline

Constructor with exception message

Parameters
rMessageexception message (default: "Karto Exception")
errorCodeerror code (default: 0)

Definition at line 107 of file Karto.h.

◆ Exception() [2/2]

karto::Exception::Exception ( const Exception rException)
inline

Copy constructor

Definition at line 116 of file Karto.h.

◆ ~Exception()

virtual karto::Exception::~Exception ( )
inlinevirtual

Destructor

Definition at line 125 of file Karto.h.

Member Function Documentation

◆ GetErrorCode()

kt_int32s karto::Exception::GetErrorCode ( )
inline

Gets error code

Returns
error code

Definition at line 155 of file Karto.h.

◆ GetErrorMessage()

const std::string& karto::Exception::GetErrorMessage ( ) const
inline

Gets the exception message

Returns
error message as string

Definition at line 146 of file Karto.h.

◆ operator=()

Exception& karto::Exception::operator= ( const Exception rException)
inline

Assignment operator

Definition at line 133 of file Karto.h.

Friends And Related Function Documentation

◆ operator<<

KARTO_EXPORT std::ostream& operator<< ( std::ostream &  rStream,
Exception rException 
)
friend

Write exception to output stream

Parameters
rStreamoutput stream
rExceptionexception to write

Definition at line 151 of file Karto.cpp.

Member Data Documentation

◆ m_ErrorCode

kt_int32s karto::Exception::m_ErrorCode
private

Definition at line 170 of file Karto.h.

◆ m_Message

std::string karto::Exception::m_Message
private

Definition at line 169 of file Karto.h.


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


slam_toolbox
Author(s): Steve Macenski
autogenerated on Thu Jan 11 2024 03:37:56