Module Values.ValidationExceptionSource

Occurs when a B2BI object cannot be validated against a request from another object. This exception can be thrown during standard EDI validation or when custom validation rules fail, such as when element length constraints are violated, invalid codes are used in code list validations, or required elements are missing based on configured element requirement rules.

Sourcetype nonrec t = {
  1. message : ErrorMessage.t option;
}
Sourceval make : ?message:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `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