Skip to main content

Module error

Module error 

Source
Expand description

S3-specific error types.

Defines S3ServiceError, a domain-specific error enum covering all S3 error codes that Rustack may produce. Each variant maps to a concrete rustack_s3_model::error::S3ErrorCode and HTTP status code through the From implementation, making it easy to convert domain errors into wire errors.

§Usage

use rustack_s3_core::error::S3ServiceError;
use rustack_s3_model::error::{S3Error, S3ErrorCode};

let err = S3ServiceError::NoSuchBucket {
    bucket: "my-bucket".to_owned(),
};
let s3_err: S3Error = err.into();
assert_eq!(s3_err.code, S3ErrorCode::NoSuchBucket);

Enums§

S3ServiceError
S3 service error type.

Type Aliases§

S3ServiceResult
Convenience result type for S3 service operations.