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 (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...
 
 CannotSerializeException (int a_ValueIndex, const char *a_ErrorMsg)
 Constructs a new instance of the exception based on the provided values directly. More...
 
const AStringGetValueName () const
 

Protected Attributes

AString m_ValueName
 

Private Types

using Super = std::runtime_error
 

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 29 of file LuaJson.cpp.

Member Typedef Documentation

◆ Super

using CannotSerializeException::Super = std::runtime_error
private

Definition at line 32 of file LuaJson.cpp.

Constructor & Destructor Documentation

◆ CannotSerializeException() [1/4]

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 36 of file LuaJson.cpp.

◆ CannotSerializeException() [2/4]

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 43 of file LuaJson.cpp.

◆ CannotSerializeException() [3/4]

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 51 of file LuaJson.cpp.

◆ CannotSerializeException() [4/4]

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 59 of file LuaJson.cpp.

Member Function Documentation

◆ GetValueName()

const AString& CannotSerializeException::GetValueName ( ) const
inline

Definition at line 65 of file LuaJson.cpp.

Member Data Documentation

◆ m_ValueName

AString CannotSerializeException::m_ValueName
protected

Definition at line 68 of file LuaJson.cpp.


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