Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Attributes | Private Types | List of all members
CannotSerializeException Class Reference

Exception thrown when the input cannot be serialized. More...

Inheritance diagram for CannotSerializeException:
Inheritance graph
[legend]
Collaboration diagram for CannotSerializeException:
Collaboration graph
[legend]

Public Member Functions

 CannotSerializeException (const AString &a_ValueName, const char *a_ErrorMsg)
 Constructs a new instance of the exception based on the provided values directly. More...
 
 CannotSerializeException (int a_ValueIndex, const char *a_ErrorMsg)
 Constructs a new instance of the exception based on the provided values directly. More...
 
 CannotSerializeException (const CannotSerializeException &a_Parent, const AString &a_ValueNamePrefix)
 Constructs a new instance of the exception that takes the error message and value name from the parent, and prefix the value name with the specified prefix. More...
 
 CannotSerializeException (const CannotSerializeException &a_Parent, int a_ValueNamePrefixIndex)
 Constructs a new instance of the exception that takes the error message and value name from the parent, and prefix the value name with the specified prefix. More...
 
const AStringGetValueName () const
 

Protected Attributes

AString m_ValueName
 

Private Types

typedef std::runtime_error Super
 

Detailed Description

Exception thrown when the input cannot be serialized.

Keeps track of the error message and the problematic value's path in the table.

Definition at line 28 of file LuaJson.cpp.

Member Typedef Documentation

typedef std::runtime_error CannotSerializeException::Super
private

Definition at line 31 of file LuaJson.cpp.

Constructor & Destructor Documentation

CannotSerializeException::CannotSerializeException ( const AString a_ValueName,
const char *  a_ErrorMsg 
)
inlineexplicit

Constructs a new instance of the exception based on the provided values directly.

Definition at line 34 of file LuaJson.cpp.

CannotSerializeException::CannotSerializeException ( int  a_ValueIndex,
const char *  a_ErrorMsg 
)
inlineexplicit

Constructs a new instance of the exception based on the provided values directly.

Definition at line 41 of file LuaJson.cpp.

CannotSerializeException::CannotSerializeException ( const CannotSerializeException a_Parent,
const AString a_ValueNamePrefix 
)
inlineexplicit

Constructs a new instance of the exception that takes the error message and value name from the parent, and prefix the value name with the specified prefix.

Used for prefixing the value name's path along the call stack that lead to the main exception.

Definition at line 49 of file LuaJson.cpp.

CannotSerializeException::CannotSerializeException ( const CannotSerializeException a_Parent,
int  a_ValueNamePrefixIndex 
)
inlineexplicit

Constructs a new instance of the exception that takes the error message and value name from the parent, and prefix the value name with the specified prefix.

Used for prefixing the value name's path along the call stack that lead to the main exception.

Definition at line 57 of file LuaJson.cpp.

Member Function Documentation

const AString& CannotSerializeException::GetValueName ( ) const
inline

Definition at line 63 of file LuaJson.cpp.

Member Data Documentation

AString CannotSerializeException::m_ValueName
protected

Definition at line 66 of file LuaJson.cpp.


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