Module Values.ErrorObjectSource

An object that contains error information.

Sourcetype nonrec t = {
  1. errorMessage : ErrorMessage.t option;
    (*

    A human-readable error message.

    *)
  2. errorType : ErrorType.t option;
    (*

    The error type.

    *)
  3. errorData : ErrorData.t option;
    (*

    Machine-readable error data.

    *)
  4. stackTrace : StackTraceEntries.t option;
    (*

    Stack trace information for the error.

    *)
}
Sourceval make : ?errorMessage:??? -> ?errorType:??? -> ?errorData:??? -> ?stackTrace:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `String of StackTraceEntry.t ] list | `String of ErrorMessage.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t