Search Results for

    Show / Hide Table of Contents

    Class JsonErrorMessage

    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.

    Inheritance
    System.Object
    JsonErrorMessage
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: TimeCockpit.Data.JsonConverters
    Assembly: TimeCockpit.Data.dll
    Syntax
    public class JsonErrorMessage

    Constructors

    JsonErrorMessage()

    Declaration
    public JsonErrorMessage()

    Properties

    ExceptionType

    Gets or sets the type of the exception that occurred on the server.

    Declaration
    public string ExceptionType { get; set; }
    Property Value
    Type Description
    System.String

    Message

    Gets or sets the message of the exception that happened on the server.

    Declaration
    public string Message { get; set; }
    Property Value
    Type Description
    System.String

    StackTrace

    Gets or sets the stack trace of the exception that happened on the server.

    Declaration
    public string StackTrace { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    Read(JsonReader)

    Reads an instance of JsonErrorMessage that is serialized in Json

    Declaration
    public static JsonErrorMessage Read(JsonReader reader)
    Parameters
    Type Name Description
    Newtonsoft.Json.JsonReader reader

    The reader that is used to read the Json string.

    Returns
    Type Description
    JsonErrorMessage

    an instance of JsonErrorMessage

    Write(JsonWriter, JsonErrorMessage)

    Writes the json.

    Declaration
    public static void Write(JsonWriter writer, JsonErrorMessage jsonResult)
    Parameters
    Type Name Description
    Newtonsoft.Json.JsonWriter writer

    The writer.

    JsonErrorMessage jsonResult

    The result of a REST query.

    In This Article
    Back to top Copyright © 2025 software architects gmbh