pub enum AwsServiceError {
ServiceNotFound {
service: String,
},
ActionNotImplemented {
service: String,
action: String,
},
AwsError {
status: StatusCode,
code: String,
message: String,
extra_fields: Vec<(String, String)>,
headers: Vec<(String, String)>,
},
}Expand description
Error returned by service handlers.
Variants§
Implementations§
Source§impl AwsServiceError
impl AwsServiceError
pub fn action_not_implemented(service: &str, action: &str) -> Self
pub fn aws_error( status: StatusCode, code: impl Into<String>, message: impl Into<String>, ) -> Self
pub fn aws_error_with_fields( status: StatusCode, code: impl Into<String>, message: impl Into<String>, extra_fields: Vec<(String, String)>, ) -> Self
pub fn aws_error_with_headers( status: StatusCode, code: impl Into<String>, message: impl Into<String>, headers: Vec<(String, String)>, ) -> Self
pub fn extra_fields(&self) -> &[(String, String)]
pub fn status(&self) -> StatusCode
pub fn code(&self) -> &str
pub fn message(&self) -> String
pub fn response_headers(&self) -> &[(String, String)]
Trait Implementations§
Source§impl Debug for AwsServiceError
impl Debug for AwsServiceError
Source§impl Display for AwsServiceError
impl Display for AwsServiceError
Source§impl Error for AwsServiceError
impl Error for AwsServiceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for AwsServiceError
impl RefUnwindSafe for AwsServiceError
impl Send for AwsServiceError
impl Sync for AwsServiceError
impl Unpin for AwsServiceError
impl UnsafeUnpin for AwsServiceError
impl UnwindSafe for AwsServiceError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more