pub enum VssError {
NoSuchKeyError(String),
InvalidRequestError(String),
ConflictError(String),
AuthError(String),
InternalServerError(String),
InternalError(String),
}
Expand description
When there is an error while writing to VSS storage, the response contains a relevant error code.
A mapping from a VSS server error codes. Refer to ErrorResponse
docs for more
information regarding each error code and corresponding use-cases.
Variants§
NoSuchKeyError(String)
Please refer to ErrorCode::NoSuchKeyException
.
InvalidRequestError(String)
Please refer to ErrorCode::InvalidRequestException
.
ConflictError(String)
Please refer to ErrorCode::ConflictException
.
AuthError(String)
Please refer to ErrorCode::AuthException
.
InternalServerError(String)
Please refer to ErrorCode::InternalServerException
.
InternalError(String)
There is an unknown error, it could be a client-side bug, unrecognized error-code, network error or something else.
Implementations§
Trait Implementations§
Source§impl Error for VssError
impl Error for VssError
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 From<DecodeError> for VssError
impl From<DecodeError> for VssError
Source§fn from(err: DecodeError) -> Self
fn from(err: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<ErrorResponse> for VssError
impl From<ErrorResponse> for VssError
Source§fn from(error_response: ErrorResponse) -> Self
fn from(error_response: ErrorResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VssError
impl RefUnwindSafe for VssError
impl Send for VssError
impl Sync for VssError
impl Unpin for VssError
impl UnwindSafe for VssError
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