pub enum CoreError {
Show 16 variants
Io(Error),
Http(Error),
Archive(ZipError),
Config(ConfigError),
Registry(RegistryError),
Installer(InstallerError),
Shell(ShellError),
Plugin(PluginError),
UnknownPlugin(String),
Unsupported(String),
MissingSessionId,
InactiveTool(String),
RegistrySource {
path: PathBuf,
message: String,
},
CommandExecution {
command: String,
message: String,
},
MissingMigrationSource,
UnsupportedBackend {
backend: &'static str,
feature: &'static str,
},
}Expand description
Errors returned by the application layer.
Variants§
Io(Error)
A filesystem operation failed.
Http(Error)
An HTTP request failed.
Archive(ZipError)
An archive could not be extracted.
Config(ConfigError)
Configuration error.
Registry(RegistryError)
Registry error.
Installer(InstallerError)
Installer error.
Shell(ShellError)
Shell error.
Plugin(PluginError)
Plugin error.
UnknownPlugin(String)
A required plugin is not registered.
Unsupported(String)
A feature is unavailable in this build.
MissingSessionId
The current command requires a session id.
InactiveTool(String)
A requested tool version is not currently active.
RegistrySource
A command could not parse a registry source file.
CommandExecution
An external process failed to execute.
MissingMigrationSource
A migration source could not be found.
UnsupportedBackend
The selected backend is not compiled into this build.
Trait Implementations§
Source§impl Error for CoreError
impl Error for CoreError
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<ConfigError> for CoreError
impl From<ConfigError> for CoreError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<InstallerError> for CoreError
impl From<InstallerError> for CoreError
Source§fn from(source: InstallerError) -> Self
fn from(source: InstallerError) -> Self
Converts to this type from the input type.
Source§impl From<PluginError> for CoreError
impl From<PluginError> for CoreError
Source§fn from(source: PluginError) -> Self
fn from(source: PluginError) -> Self
Converts to this type from the input type.
Source§impl From<RegistryError> for CoreError
impl From<RegistryError> for CoreError
Source§fn from(source: RegistryError) -> Self
fn from(source: RegistryError) -> Self
Converts to this type from the input type.
Source§impl From<ShellError> for CoreError
impl From<ShellError> for CoreError
Source§fn from(source: ShellError) -> Self
fn from(source: ShellError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CoreError
impl !UnwindSafe for CoreError
impl Freeze for CoreError
impl Send for CoreError
impl Sync for CoreError
impl Unpin for CoreError
impl UnsafeUnpin for CoreError
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
Source§impl<E> ExternalError for E
impl<E> ExternalError for E
fn into_lua_err(self) -> Error
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> ⓘ
Converts
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> ⓘ
Converts
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 moreimpl<T> MaybeSend for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.