pub enum UseCaseError {
Repo(RepoError),
Provider(ProviderError),
Upstream(UpstreamError),
Domain(DomainError),
Route(RouteError),
}Expand description
Top-level error returned by use cases in later slices.
Variants§
Repo(RepoError)
Provider(ProviderError)
Upstream(UpstreamError)
Domain(DomainError)
Route(RouteError)
Routing-layer error returned by route_request. Mapped to 400 by
the HTTP layer when the requested person is unknown or carries an
unsafe name, and to 502 when the person references a provider that
is missing from the [[providers]] array (a config-level mistake).
Trait Implementations§
Source§impl Debug for UseCaseError
impl Debug for UseCaseError
Source§impl Display for UseCaseError
impl Display for UseCaseError
Source§impl Error for UseCaseError
impl Error for UseCaseError
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<DomainError> for UseCaseError
impl From<DomainError> for UseCaseError
Source§fn from(source: DomainError) -> Self
fn from(source: DomainError) -> Self
Converts to this type from the input type.
Source§impl From<ProviderError> for UseCaseError
impl From<ProviderError> for UseCaseError
Source§fn from(source: ProviderError) -> Self
fn from(source: ProviderError) -> Self
Converts to this type from the input type.
Source§impl From<RepoError> for UseCaseError
impl From<RepoError> for UseCaseError
Source§impl From<RouteError> for UseCaseError
impl From<RouteError> for UseCaseError
Source§fn from(source: RouteError) -> Self
fn from(source: RouteError) -> Self
Converts to this type from the input type.
Source§impl From<UpstreamError> for UseCaseError
impl From<UpstreamError> for UseCaseError
Source§fn from(source: UpstreamError) -> Self
fn from(source: UpstreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UseCaseError
impl RefUnwindSafe for UseCaseError
impl Send for UseCaseError
impl Sync for UseCaseError
impl Unpin for UseCaseError
impl UnsafeUnpin for UseCaseError
impl UnwindSafe for UseCaseError
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