Enum ethers_solc::error::SolcError
source · 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)>
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 !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