Class JsonException
- Namespace
- Alis.Core.Aspect.Data.Json
- Assembly
- Alis.dll
The exception that is thrown when a JSON error occurs.
[Serializable]
public class JsonException : Exception, ISerializableInheritance
Implements
Inherited Members
Constructors
JsonException()
Initializes a new instance of the Alis.Core.Aspect.Data.Json.JsonException class.
public JsonException()JsonException(string)
Initializes a new instance of the Alis.Core.Aspect.Data.Json.JsonException class.
public JsonException(string message)Parameters
messagestring-
The message that describes the error.
JsonException(string, Exception)
Initializes a new instance of the Alis.Core.Aspect.Data.Json.JsonException class.
public JsonException(string message, Exception innerException)Parameters
messagestring-
The error message that explains the reason for the exception.
innerExceptionException-
The exception that is the cause of the current exception, or a null reference (
Nothingin Visual Basic) if no inner exception is specified.
JsonException(Exception)
Initializes a new instance of the Alis.Core.Aspect.Data.Json.JsonException class.
public JsonException(Exception innerException)Parameters
innerExceptionException-
The inner exception.
Fields
Prefix
The error prefix.
public const string Prefix = "JSO"Field Value
Properties
Code
Gets the error code.
public int Code { get; }Property Value
Methods
GetCode(string)
Gets the error code.
public static int GetCode(string message)Parameters
messagestring-
The message.
Returns
- int
-
The error code.