Enum ethers_solc::error::SolcError
source · pub enum SolcError {
Show 14 variants
SolcError(String),
PragmaNotFound,
VersionNotFound,
ChecksumMismatch {
version: Version,
expected: String,
detected: String,
file: PathBuf,
},
SemverError(Error),
SerdeJson(Error),
Io(SolcIoError),
Resolve(SolcIoError),
ResolveBadSymlink(SolcIoError),
FailedResolveImport(SolcIoError, PathBuf, PathBuf),
NoContracts(String),
PatternError(PatternError),
Message(String),
ArtifactNotFound(PathBuf, String),
}
Expand description
Various error types
Variants§
SolcError(String)
Internal solc error
PragmaNotFound
VersionNotFound
ChecksumMismatch
SemverError(Error)
SerdeJson(Error)
Deserialization error
Io(SolcIoError)
Filesystem IO error
Resolve(SolcIoError)
Failed to resolve a file
ResolveBadSymlink(SolcIoError)
FailedResolveImport(SolcIoError, PathBuf, PathBuf)
NoContracts(String)
PatternError(PatternError)
Message(String)
General purpose message
ArtifactNotFound(PathBuf, String)
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.