BGC Tools
|
The exception that is thrown when a JSON value cannot be serialized. More...
Public Types | |
enum | ErrorType : int { ErrorType.Unknown = 0, ErrorType.InvalidNumber, ErrorType.InvalidValueType, ErrorType.CircularReference } |
Enumerates the types of errors that can occur during serialization. More... | |
Public Member Functions | |
JsonSerializationException () | |
Initializes a new instance of JsonSerializationException. More... | |
JsonSerializationException (ErrorType type) | |
Initializes a new instance of JsonSerializationException with the given error type. More... | |
JsonSerializationException (string message, ErrorType type) | |
Initializes a new instance of JsonSerializationException with the given message and error type. More... | |
Properties | |
ErrorType | Type [get, private set] |
Gets the type of error that caused the exception to be thrown. More... | |
Static Private Member Functions | |
static string | GetDefaultMessage (ErrorType type) |
The exception that is thrown when a JSON value cannot be serialized.
This exception is only intended to be thrown by LightJson.
Definition at line 11 of file JsonSerializationException.cs.
|
strong |
Enumerates the types of errors that can occur during serialization.
Definition at line 63 of file JsonSerializationException.cs.
|
inline |
Initializes a new instance of JsonSerializationException.
Definition at line 21 of file JsonSerializationException.cs.
|
inline |
Initializes a new instance of JsonSerializationException with the given error type.
type | The error type that describes the cause of the error. |
Definition at line 28 of file JsonSerializationException.cs.
|
inline |
Initializes a new instance of JsonSerializationException with the given message and error type.
message | The message that describes the error. |
type | The error type that describes the cause of the error. |
Definition at line 36 of file JsonSerializationException.cs.
|
inlinestaticprivate |
Definition at line 42 of file JsonSerializationException.cs.
|
getprivate set |
Gets the type of error that caused the exception to be thrown.
Definition at line 16 of file JsonSerializationException.cs.