pub enum SolcError {
Show 18 variants
SolcError(ExitStatus, String),
PragmaNotFound,
VersionNotFound,
ChecksumMismatch {
version: Version,
expected: String,
detected: String,
file: PathBuf,
},
ChecksumNotFound {
version: Version,
},
SemverError(Error),
SerdeJson(Error),
Io(SolcIoError),
ResolveBadSymlink(SolcIoError),
Resolve(SolcIoError),
ResolveCaseSensitiveFileName {
error: SolcIoError,
existing_file: PathBuf,
},
FailedResolveImport(Box<SolcError>, PathBuf, PathBuf),
SvmError(SolcVmError),
NoContracts(String),
PatternError(PatternError),
Message(String),
ArtifactNotFound(PathBuf, String),
FsExtra(Error),
}
Expand description
Various error types
Variants§
SolcError(ExitStatus, String)
Errors related to the Solc executable itself.
PragmaNotFound
VersionNotFound
ChecksumMismatch
ChecksumNotFound
SemverError(Error)
SerdeJson(Error)
Deserialization error
Io(SolcIoError)
Filesystem IO error
ResolveBadSymlink(SolcIoError)
Resolve(SolcIoError)
Failed to resolve a file
ResolveCaseSensitiveFileName
FailedResolveImport(Box<SolcError>, PathBuf, PathBuf)
SvmError(SolcVmError)
Available on crate feature
svm-solc
and non-WebAssembly only.NoContracts(String)
PatternError(PatternError)
Message(String)
General purpose message.
ArtifactNotFound(PathBuf, String)
FsExtra(Error)
Available on crate feature
project-util
only.Implementations§
Trait Implementations§
Source§impl Error for SolcError
impl Error for SolcError
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<PatternError> for SolcError
impl From<PatternError> for SolcError
Source§fn from(source: PatternError) -> Self
fn from(source: PatternError) -> Self
Converts to this type from the input type.
Source§impl From<SolcIoError> for SolcError
impl From<SolcIoError> for SolcError
Source§fn from(source: SolcIoError) -> Self
fn from(source: SolcIoError) -> Self
Converts to this type from the input type.
Source§impl From<SolcVmError> for SolcError
impl From<SolcVmError> for SolcError
Source§fn from(source: SolcVmError) -> Self
fn from(source: SolcVmError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SolcError
impl !RefUnwindSafe for SolcError
impl Send for SolcError
impl Sync for SolcError
impl Unpin for SolcError
impl !UnwindSafe for SolcError
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<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 more