pub enum RadError {
Show 24 variants
Exit,
HookMacroFail(String),
InvalidConversion(String),
UnallowedChar(String),
AssertFail,
InvalidExecution(String),
InvalidString(Utf8Error),
InvalidCommandOption(String),
EnvError(VarError),
InvalidMacroName(String),
InvalidRegex(Error),
InvalidArgument(String),
InvalidArgInt(ParseIntError),
InvalidArgBoolean(ParseBoolError),
InvalidFile(String),
StdIo(Error),
Utf8Err(FromUtf8Error),
UnsupportedTableFormat(String),
BincodeError(String),
PermissionDenied(String, AuthType),
StrictPanic,
Panic,
ManualPanic(String),
UnallowedMacroExecution(String),
}Expand description
R4d’s error type
Variants
Exit
HookMacroFail(String)
InvalidConversion(String)
UnallowedChar(String)
AssertFail
InvalidExecution(String)
InvalidString(Utf8Error)
InvalidCommandOption(String)
EnvError(VarError)
InvalidMacroName(String)
InvalidRegex(Error)
InvalidArgument(String)
InvalidArgInt(ParseIntError)
InvalidArgBoolean(ParseBoolError)
InvalidFile(String)
StdIo(Error)
Utf8Err(FromUtf8Error)
UnsupportedTableFormat(String)
BincodeError(String)
PermissionDenied(String, AuthType)
StrictPanic
Panic
ManualPanic(String)
UnallowedMacroExecution(String)
Trait Implementations
sourceimpl Error for RadError
impl Error for RadError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<FromUtf8Error> for RadError
impl From<FromUtf8Error> for RadError
sourcefn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Performs the conversion.
sourceimpl From<ParseBoolError> for RadError
impl From<ParseBoolError> for RadError
sourcefn from(err: ParseBoolError) -> Self
fn from(err: ParseBoolError) -> Self
Performs the conversion.
sourceimpl From<ParseIntError> for RadError
impl From<ParseIntError> for RadError
sourcefn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for RadError
impl Send for RadError
impl Sync for RadError
impl Unpin for RadError
impl !UnwindSafe for RadError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more