Public Member Functions | Private Attributes | Friends
karto::Exception Class Reference

#include <Exception.h>

List of all members.

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.

Copy constructor

Definition at line 35 of file Exception.cpp.

Destructor

Definition at line 41 of file Exception.cpp.


Member Function Documentation

Gets error code

Returns:
error code

Definition at line 61 of file Exception.cpp.

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

Definition at line 97 of file Exception.h.

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 Sun Apr 2 2017 03:53:09