Table of Contents

Class JsonDeserializationException

Namespace
TimeCockpit.Data.DataModel
Assembly
TimeCockpit.Data.dll

Represents an error that is raised when an instance of EntityObject was not successfully deserialized from Json.

public class JsonDeserializationException : Exception, ISerializable, _Exception
Inheritance
Object
Exception
JsonDeserializationException
Implements
ISerializable
_Exception
Inherited Members
Exception.GetBaseException()
Exception.ToString()
Exception.GetType()
Exception.Message
Exception.Data
Exception.InnerException
Exception.TargetSite
Exception.StackTrace
Exception.HelpLink
Exception.Source
Exception.HResult
Exception.SerializeObjectState
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.MemberwiseClone()

Constructors

JsonDeserializationException(SerializationInfo, StreamingContext)

Initializes a new instance of the JsonDeserializationException class

protected JsonDeserializationException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.

JsonDeserializationException(String, Exception)

Initializes a new instance of the JsonDeserializationException class

public JsonDeserializationException(string message, Exception innerException)

Parameters

message String

A message that describes the error.

innerException Exception

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

public JsonDeserializationException(string message, Exception innerException, string serverStackTrace)

Parameters

message String

A message that describes the error.

innerException Exception

The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

serverStackTrace String

The stack trace of the error that occurred on the server.

JsonDeserializationException(String, Exception, String, String)

Initializes a new instance of the JsonDeserializationException class

public JsonDeserializationException(string message, Exception innerException, string serverStackTrace, string serverExceptionType)

Parameters

message String

A message that describes the error.

innerException Exception

The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

serverStackTrace String

The stack trace of the error that occurred on the server.

serverExceptionType String

The exception type on the server.

Properties

ServerExceptionType

Gets the server exception type.

public string ServerExceptionType { get; }

Property Value

String

ServerMessage

Gets the server message.

public string ServerMessage { get; }

Property Value

String

ServerStackTrace

Gets the server stack trace.

public string ServerStackTrace { get; }

Property Value

String

Methods

GetObjectData(SerializationInfo, StreamingContext)

Sets the SerializationInfo with information about the exception.

public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.