pub enum ClrError {
Show 20 variants
FileReadError(String),
ApiError(&'static str, i32),
MissingArguments,
CastingError(&'static str),
InvalidExecutable,
MethodNotFound,
PropertyNotFound,
NotDotNet,
MetaHostCreationError(String),
RuntimeInfoError(String),
RuntimeHostError(String),
RuntimeStartError,
DomainCreationError(String),
DefaultDomainError(String),
NoDomainAvailable,
NullPointerError(&'static str),
SafeArrayError(String),
VariantUnsupported,
Msg(&'static str),
InvalidNtHeader,
}Expand description
Represents all possible errors that can occur when interacting with the .NET runtime.
Variants§
FileReadError(String)
File read failure.
ApiError(&'static str, i32)
API call failed with HRESULT.
MissingArguments
Entrypoint expected arguments but none were supplied.
CastingError(&'static str)
Invalid interface cast.
InvalidExecutable
Provided buffer is not a valid executable.
MethodNotFound
Method not found in target assembly.
PropertyNotFound
Property not found in target assembly.
NotDotNet
Executable is not a .NET assembly.
MetaHostCreationError(String)
Failed to create CLR MetaHost.
RuntimeInfoError(String)
Failed to retrieve runtime information.
RuntimeHostError(String)
Failed to obtain runtime host interface.
RuntimeStartError
Runtime start failure.
DomainCreationError(String)
Failed to create AppDomain.
DefaultDomainError(String)
Failed to retrieve default AppDomain.
NoDomainAvailable
No AppDomain available in runtime.
NullPointerError(&'static str)
Null pointer passed to an API expecting a valid reference.
SafeArrayError(String)
SafeArray creation failure.
VariantUnsupported
Unsupported VARIANT type.
Msg(&'static str)
Generic error with descriptive message.
InvalidNtHeader
Invalid or missing NT header in PE image.
Trait Implementations§
Source§impl Error for ClrError
impl Error for ClrError
1.30.0 · 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()