Module Values.MockErrorOutputSource

A JSON object that contains a mocked error.

Sourcetype nonrec t = {
  1. error : SensitiveError.t option;
    (*

    A string denoting the error code of the exception thrown when invoking the tested state. This field is required if mock.errorOutput is specified.

    *)
  2. cause : SensitiveCause.t option;
    (*

    A string containing the cause of the exception thrown when executing the state's logic.

    *)
}
Sourceval make : ?error:??? -> ?cause:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of SensitiveError.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