Class JsonDeserializationException
Represents an error that is raised when an instance of EntityObject was not successfully deserialized from Json.
Inheritance
Implements
Inherited Members
Namespace: TimeCockpit.Data.DataModel
Assembly: TimeCockpit.Data.dll
Syntax
public class JsonDeserializationException : Exception, ISerializable, _Exception
Constructors
JsonDeserializationException(SerializationInfo, StreamingContext)
Initializes a new instance of the JsonDeserializationException class
Declaration
protected JsonDeserializationException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The StreamingContext that contains contextual information about the source or destination. |
JsonDeserializationException(String, Exception)
Initializes a new instance of the JsonDeserializationException class
Declaration
public JsonDeserializationException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | A message that describes the error. |
System.Exception | innerException | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. |
JsonDeserializationException(String, Exception, String)
Initializes a new instance of the JsonDeserializationException class
Declaration
public JsonDeserializationException(string message, Exception innerException, string serverStackTrace)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | A message that describes the error. |
System.Exception | innerException | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. |
System.String | serverStackTrace | The stack trace of the error that occurred on the server. |
JsonDeserializationException(String, Exception, String, String)
Initializes a new instance of the JsonDeserializationException class
Declaration
public JsonDeserializationException(string message, Exception innerException, string serverStackTrace, string serverExceptionType)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | A message that describes the error. |
System.Exception | innerException | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. |
System.String | serverStackTrace | The stack trace of the error that occurred on the server. |
System.String | serverExceptionType | The exception type on the server. |
Properties
ServerExceptionType
Gets the server exception type.
Declaration
public string ServerExceptionType { get; }
Property Value
Type | Description |
---|---|
System.String |
ServerMessage
Gets the server message.
Declaration
public string ServerMessage { get; }
Property Value
Type | Description |
---|---|
System.String |
ServerStackTrace
Gets the server stack trace.
Declaration
public string ServerStackTrace { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Sets the SerializationInfo with information about the exception.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The StreamingContext that contains contextual information about the source or destination. |