Module Awskit_s3.Error

Structured Awskit error value.

val pp : Stdlib.Format.formatter -> t -> unit

Pretty-print an error.

val equal : t -> t -> bool

Compare two errors structurally.

val to_string_hum : t -> string

Render an error for humans.

val service_code : t -> string option

Return the S3 service error code, when the error came from a modeled service response.

val is_not_found : t -> bool

Return true for S3 not-found errors recognized by lookup helpers.

val is_no_such_bucket : t -> bool

Return true for NoSuchBucket service errors.

val is_no_such_key : t -> bool

Return true for NoSuchKey service errors.

val is_precondition_failed : t -> bool

Return true for failed conditional request preconditions.

val is_conditional_request_conflict : t -> bool

Return true for S3 conditional-write conflicts.

val is_conditional_failure : t -> bool

Return true for any conditional request failure recognized by S3.