pub enum SolcError {
Show 18 variants
SolcError(ExitStatus, String),
ParseError(String),
InvalidUtf8,
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),
NoContracts(String),
Message(String),
ArtifactNotFound(PathBuf, String),
Fmt(Error),
}
Expand description
Various error types
Variants§
SolcError(ExitStatus, String)
Errors related to the Solc executable itself.
ParseError(String)
InvalidUtf8
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)
NoContracts(String)
Message(String)
General purpose message.
ArtifactNotFound(PathBuf, String)
Fmt(Error)
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<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.
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