Trait foundry_compilers::compilers::CompilationError
source · pub trait CompilationError: Serialize + Send + Sync + Display + Debug + Clone + PartialEq + Eq + 'static {
// Required methods
fn is_warning(&self) -> bool;
fn is_error(&self) -> bool;
fn source_location(&self) -> Option<SourceLocation>;
fn severity(&self) -> Severity;
fn error_code(&self) -> Option<u64>;
}
Expand description
Error returned by compiler. Might also represent a warning or informational message.
Required Methods§
fn is_warning(&self) -> bool
fn is_error(&self) -> bool
fn source_location(&self) -> Option<SourceLocation>
fn severity(&self) -> Severity
fn error_code(&self) -> Option<u64>
Object Safety§
This trait is not object safe.