[−][src]Trait conjure_error::ErrorType
A trait implemented by Conjure error types.
Required methods
fn code(&self) -> ErrorCode[src]
Returns the error's code.
fn name(&self) -> &str[src]
Returns the error's name.
The name must be formatted like NamespaceName:ErrorName.
fn instance_id(&self) -> Option<Uuid>[src]
Returns the error's instance ID, if it stores one.
Conjure-generated error types return None, but other implementations like those for SerializableError
and WithInstanceId return a value.
fn safe_args(&self) -> &'static [&'static str][src]
Returns a sorted slice of the names of the error's safe parameters.
Provided methods
fn with_instance_id(self, instance_id: Uuid) -> WithInstanceId<Self> where
Self: Sized, [src]
Self: Sized,
Wraps the error in another that overrides its instance ID.
Implementations on Foreign Types
impl<T: ?Sized> ErrorType for &T where
T: ErrorType, [src]
T: ErrorType,
fn code(&self) -> ErrorCode[src]
fn name(&self) -> &str[src]
fn instance_id(&self) -> Option<Uuid>[src]
fn safe_args(&self) -> &'static [&'static str][src]
Implementors
impl ErrorType for Conflict[src]
fn code(&self) -> ErrorCode[src]
fn name(&self) -> &str[src]
fn instance_id(&self) -> Option<Uuid>[src]
fn safe_args(&self) -> &'static [&'static str][src]
impl ErrorType for FailedPrecondition[src]
fn code(&self) -> ErrorCode[src]
fn name(&self) -> &str[src]
fn instance_id(&self) -> Option<Uuid>[src]
fn safe_args(&self) -> &'static [&'static str][src]
impl ErrorType for Internal[src]
fn code(&self) -> ErrorCode[src]
fn name(&self) -> &str[src]
fn instance_id(&self) -> Option<Uuid>[src]
fn safe_args(&self) -> &'static [&'static str][src]
impl ErrorType for InvalidArgument[src]
fn code(&self) -> ErrorCode[src]
fn name(&self) -> &str[src]
fn instance_id(&self) -> Option<Uuid>[src]
fn safe_args(&self) -> &'static [&'static str][src]
impl ErrorType for NotFound[src]
fn code(&self) -> ErrorCode[src]
fn name(&self) -> &str[src]
fn instance_id(&self) -> Option<Uuid>[src]
fn safe_args(&self) -> &'static [&'static str][src]
impl ErrorType for PermissionDenied[src]
fn code(&self) -> ErrorCode[src]
fn name(&self) -> &str[src]
fn instance_id(&self) -> Option<Uuid>[src]
fn safe_args(&self) -> &'static [&'static str][src]
impl ErrorType for RequestEntityTooLarge[src]
fn code(&self) -> ErrorCode[src]
fn name(&self) -> &str[src]
fn instance_id(&self) -> Option<Uuid>[src]
fn safe_args(&self) -> &'static [&'static str][src]
impl ErrorType for SerializableError[src]
fn code(&self) -> ErrorCode[src]
fn name(&self) -> &str[src]
fn instance_id(&self) -> Option<Uuid>[src]
fn safe_args(&self) -> &'static [&'static str][src]
impl ErrorType for Timeout[src]
fn code(&self) -> ErrorCode[src]
fn name(&self) -> &str[src]
fn instance_id(&self) -> Option<Uuid>[src]
fn safe_args(&self) -> &'static [&'static str][src]
impl<T> ErrorType for WithInstanceId<T> where
T: ErrorType, [src]
T: ErrorType,