pub enum CreateContactMethodError {
AccessDenied(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}Expand description
Errors returned by CreateContactMethod
Variants§
AccessDenied(String)
Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
InvalidInput(String)
Lightsail throws this exception when user input does not conform to the validation rules of an input field.
Domain-related APIs are only available in the N. Virginia (us-east-1) Region. Please set your AWS Region configuration to us-east-1 to create, view, or edit these resources.
NotFound(String)
Lightsail throws this exception when it cannot find a resource.
OperationFailure(String)
Lightsail throws this exception when an operation fails to execute.
Service(String)
A general service exception.
Unauthenticated(String)
Lightsail throws this exception when the user has not been authenticated.
Implementations§
Source§impl CreateContactMethodError
impl CreateContactMethodError
pub fn from_response( res: BufferedHttpResponse, ) -> RusotoError<CreateContactMethodError>
Trait Implementations§
Source§impl Debug for CreateContactMethodError
impl Debug for CreateContactMethodError
Source§impl Display for CreateContactMethodError
impl Display for CreateContactMethodError
Source§impl Error for CreateContactMethodError
impl Error for CreateContactMethodError
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()
Source§impl PartialEq for CreateContactMethodError
impl PartialEq for CreateContactMethodError
impl StructuralPartialEq for CreateContactMethodError
Auto Trait Implementations§
impl Freeze for CreateContactMethodError
impl RefUnwindSafe for CreateContactMethodError
impl Send for CreateContactMethodError
impl Sync for CreateContactMethodError
impl Unpin for CreateContactMethodError
impl UnwindSafe for CreateContactMethodError
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