Class JsonErrorMessage
- Namespace
- TimeCockpit.Data.JsonConverters
- Assembly
- TimeCockpit.Data.dll
Represents the result of a rest query. The class is serialized in json and is sent to the client. A REST query always returns a JsonServiceOperationInfo or a derived class.
public class JsonErrorMessage
- Inheritance
-
ObjectJsonErrorMessage
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Constructors
JsonErrorMessage()
public JsonErrorMessage()
Properties
ExceptionType
Gets or sets the type of the exception that occurred on the server.
public string ExceptionType { get; set; }
Property Value
- String
Message
Gets or sets the message of the exception that happened on the server.
public string Message { get; set; }
Property Value
- String
StackTrace
Gets or sets the stack trace of the exception that happened on the server.
public string StackTrace { get; set; }
Property Value
- String
Methods
Read(JsonReader)
Reads an instance of JsonErrorMessage that is serialized in Json
public static JsonErrorMessage Read(JsonReader reader)
Parameters
readerJsonReaderThe reader that is used to read the Json string.
Returns
- JsonErrorMessage
an instance of JsonErrorMessage
Write(JsonWriter, JsonErrorMessage)
Writes the json.
public static void Write(JsonWriter writer, JsonErrorMessage jsonResult)
Parameters
writerJsonWriterThe writer.
jsonResultJsonErrorMessageThe result of a REST query.