pub enum Error {
Show 24 variants
Auth(Host, AuthError),
Checksum(ChecksumError),
Fs(FsError),
InstallPackage(InstallPackageError),
InstallPath(InstallPathError),
Io(Error),
Json(Error),
Lineage(LineageError),
Login(LoginError),
Manifest(ManifestError),
ObjectHash(Error),
PackageOp(PackageOpError),
Reqwest(Error),
Role(RoleError),
RemoteCatalog(RemoteCatalogError),
S3(S3Error),
ToString(ToStrError),
TryFromIntError(TryFromIntError),
Unimplemented,
Uri(UriError),
UrlParse(ParseError),
Utf8(Utf8Error),
WorkflowValidation(WorkflowValidationError),
Yaml(Error),
}Expand description
The error type for this library
Variants§
Auth(Host, AuthError)
Checksum(ChecksumError)
Fs(FsError)
InstallPackage(InstallPackageError)
InstallPath(InstallPathError)
Io(Error)
Json(Error)
Lineage(LineageError)
Login(LoginError)
Manifest(ManifestError)
ObjectHash(Error)
PackageOp(PackageOpError)
Reqwest(Error)
Role(RoleError)
RemoteCatalog(RemoteCatalogError)
S3(S3Error)
ToString(ToStrError)
TryFromIntError(TryFromIntError)
Unimplemented
Uri(UriError)
UrlParse(ParseError)
Utf8(Utf8Error)
WorkflowValidation(WorkflowValidationError)
Yaml(Error)
Implementations§
Source§impl Error
impl Error
Sourcepub fn is_not_found(&self) -> bool
pub fn is_not_found(&self) -> bool
Returns true if this error represents a “not found” — an S3
NoSuchKey response, or a local filesystem miss (a working-tree file
that was deleted). Lets callers tell an absent object/file apart from a
genuine I/O failure (permission denied, transient storage error).
Sourcepub fn is_access_denied(&self) -> bool
pub fn is_access_denied(&self) -> bool
Returns true if S3 refused the call with the AccessDenied code.
The mirror of Error::is_not_found for the role dimension: callers
that only ever see an Error need this to tell “the active role
cannot reach this object” apart from a generic storage failure, so
every layer that re-wraps an S3 error must let this variant through
unchanged.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ChecksumError> for Error
impl From<ChecksumError> for Error
Source§fn from(source: ChecksumError) -> Self
fn from(source: ChecksumError) -> Self
Source§impl From<ConfigError> for Error
Map a workflow config error onto the existing Error variants so the
consumer-visible Display and variant matching are byte-identical to before
the crate extraction. The mapping is cross-variant (a single ConfigError
splits across RemoteCatalog and Uri), so it cannot be a #[from] field
attribute.
impl From<ConfigError> for Error
Map a workflow config error onto the existing Error variants so the
consumer-visible Display and variant matching are byte-identical to before
the crate extraction. The mapping is cross-variant (a single ConfigError
splits across RemoteCatalog and Uri), so it cannot be a #[from] field
attribute.
Source§fn from(err: ConfigError) -> Self
fn from(err: ConfigError) -> Self
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(source: ObjectHashError) -> Self
fn from(source: ObjectHashError) -> Self
Source§impl From<LineageError> for Error
impl From<LineageError> for Error
Source§fn from(source: LineageError) -> Self
fn from(source: LineageError) -> Self
Source§impl From<LoginError> for Error
impl From<LoginError> for Error
Source§fn from(source: LoginError) -> Self
fn from(source: LoginError) -> Self
Source§impl From<ManifestError> for Error
impl From<ManifestError> for Error
Source§fn from(source: ManifestError) -> Self
fn from(source: ManifestError) -> Self
Source§impl From<PackageOpError> for Error
impl From<PackageOpError> for Error
Source§fn from(source: PackageOpError) -> Self
fn from(source: PackageOpError) -> Self
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Source§impl From<RemoteCatalogError> for Error
impl From<RemoteCatalogError> for Error
Source§fn from(source: RemoteCatalogError) -> Self
fn from(source: RemoteCatalogError) -> Self
Source§impl From<StripPrefixError> for Error
impl From<StripPrefixError> for Error
Source§fn from(err: StripPrefixError) -> Self
fn from(err: StripPrefixError) -> Self
Source§impl From<ToStrError> for Error
impl From<ToStrError> for Error
Source§fn from(source: ToStrError) -> Self
fn from(source: ToStrError) -> Self
Source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Source§impl From<WorkflowValidationError> for Error
impl From<WorkflowValidationError> for Error
Source§fn from(source: WorkflowValidationError) -> Self
fn from(source: WorkflowValidationError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more