Enum umm::java::JavaFileError
source · pub enum JavaFileError {
DuringCompilation {
stacktrace: String,
diags: Vec<JavacDiagnostic>,
},
AtRuntime {
output: String,
diags: Vec<LineRef>,
},
FailedTests {
test_results: String,
diags: Vec<LineRef>,
},
Unknown(Error),
}
Expand description
An enum to represent possible errors with a Java file
Variants§
DuringCompilation
Fields
§
diags: Vec<JavacDiagnostic>
javac stacktrace, parsed with crate::parsers::parser::parse_diag
An error while compiling a Java file (running crate::java::File::check)
AtRuntime
Fields
§
diags: Vec<LineRef>
java stacktrace, parsed with parser::junit_stacktrace_line_ref
An error while running a Java file (running crate::java::File::run)
FailedTests
Fields
§
diags: Vec<LineRef>
junit stacktrace, parsed with parser::junit_stacktrace_line_ref
An error while testing a Java file (running crate::java::File::test)
Unknown(Error)
Unknown error
Trait Implementations§
source§impl Debug for JavaFileError
impl Debug for JavaFileError
source§impl Display for JavaFileError
impl Display for JavaFileError
source§impl Error for JavaFileError
impl Error for JavaFileError
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()
Auto Trait Implementations§
impl RefUnwindSafe for JavaFileError
impl Send for JavaFileError
impl Sync for JavaFileError
impl Unpin for JavaFileError
impl UnwindSafe for JavaFileError
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