foundry_compilers/compilers/vyper/
error.rs1use crate::{artifacts::vyper::VyperCompilationError, compilers::CompilationError};
2use foundry_compilers_artifacts::{error::SourceLocation, Severity};
3
4impl CompilationError for VyperCompilationError {
5 fn is_warning(&self) -> bool {
6 self.severity.is_warning()
7 }
8
9 fn is_error(&self) -> bool {
10 self.severity.is_error()
11 }
12
13 fn source_location(&self) -> Option<SourceLocation> {
14 None
15 }
16
17 fn severity(&self) -> Severity {
18 self.severity
19 }
20
21 fn error_code(&self) -> Option<u64> {
22 None
23 }
24}