Module Awskit.ErrorSource

Structured core error type.

Structured core AWS SDK errors.

Service packages should preserve this value and add classifier helpers over it instead of widening errors into service-specific polymorphic variants.

Sourcetype validation = {
  1. field : string option;
  2. message : string;
}
Sourcetype transport = {
  1. message : string;
  2. retryable : bool;
  3. cause : string option;
}
Sourcetype service = {
  1. status : int;
  2. code : string option;
  3. message : string option;
  4. request_id : string option;
  5. host_id : string option;
  6. headers : (string * string) list;
  7. body : string option;
}
Sourcetype body = {
  1. message : string;
  2. limit : int64 option;
}
Sourcetype retry_class = [
  1. | `Retryable
  2. | `Throttled
  3. | `Auth
  4. | `Conflict
  5. | `Not_found
  6. | `Fatal
  7. | `Unknown
]
Sourcetype t =
  1. | Validation of validation
  2. | Signing of string
  3. | Transport of transport
  4. | Service of service
  5. | Decode of string
  6. | Body of body
Sourceval validation : ?field:string -> string -> t
Sourceval signing : string -> t
Sourceval transport : ?cause:string -> retryable:bool -> string -> t
Sourceval service : service -> t
Sourceval decode : string -> t
Sourceval body : ?limit:int64 -> string -> t
Sourceval retry_class : t -> retry_class
Sourceval is_not_found : t -> bool
Sourceval pp : Format.formatter -> t -> unit
Sourceval to_string_hum : t -> string
Sourceval equal : t -> t -> bool