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

#include <Exception.h>

Public Member Functions

 Exception (const char *pMessage)
 
 Exception (const String &rMessage="Karto Exception", kt_int32s errorCode=0)
 
 Exception (const Exception &rOther)
 
kt_int32s GetErrorCode ()
 
const StringGetErrorMessage () const
 
Exceptionoperator= (const Exception &rException)
 
virtual ~Exception ()
 

Private Attributes

kt_int32s m_ErrorCode
 
String m_Message
 

Friends

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

Detailed Description

Root class for all exceptions thrown from Karto.

Definition at line 38 of file Exception.h.

Constructor & Destructor Documentation

karto::Exception::Exception ( const char *  pMessage)

Exception with given message

Parameters
pMessageexception message

Definition at line 23 of file Exception.cpp.

karto::Exception::Exception ( const String rMessage = "Karto Exception",
kt_int32s  errorCode = 0 
)

Exception with given message

Parameters
rMessageexception message
errorCodeerror code

Definition at line 29 of file Exception.cpp.

karto::Exception::Exception ( const Exception rOther)

Copy constructor

Definition at line 35 of file Exception.cpp.

karto::Exception::~Exception ( )
virtual

Destructor

Definition at line 41 of file Exception.cpp.

Member Function Documentation

kt_int32s karto::Exception::GetErrorCode ( )

Gets error code

Returns
error code

Definition at line 61 of file Exception.cpp.

const String & karto::Exception::GetErrorMessage ( ) const

Gets the error message

Returns
error message

Definition at line 56 of file Exception.cpp.

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

Assignment operator

Definition at line 45 of file Exception.cpp.

Friends And Related Function Documentation

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

Write exception to output stream

Definition at line 87 of file Exception.h.

Member Data Documentation

kt_int32s karto::Exception::m_ErrorCode
private

Definition at line 97 of file Exception.h.

String karto::Exception::m_Message
private

Definition at line 96 of file Exception.h.


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


nav2d_karto
Author(s): Sebastian Kasperski
autogenerated on Thu Jun 6 2019 19:20:25