pub enum JavaError {
InvalidJavaPath(String),
NotFound(String),
IoError(Error),
ExecuteError(String),
RuntimeError(String),
ExecutionFailed(String),
Other(String),
}Expand description
Errors that can occur when working with Java installations.
Variants§
InvalidJavaPath(String)
The provided Java path is invalid (does not exist or cannot be used).
NotFound(String)
A required Java executable or file was not found.
IoError(Error)
An I/O error occurred (e.g., reading a file or spawning a process).
ExecuteError(String)
An error during command execution (e.g., java -version failed).
RuntimeError(String)
A runtime error, such as unexpected output format.
ExecutionFailed(String)
Execution of a Java process failed (non-zero exit code).
Other(String)
A generic error with a custom message.
Trait Implementations§
Source§impl Error for JavaError
impl Error for JavaError
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()
Auto Trait Implementations§
impl Freeze for JavaError
impl !RefUnwindSafe for JavaError
impl Send for JavaError
impl Sync for JavaError
impl Unpin for JavaError
impl UnsafeUnpin for JavaError
impl !UnwindSafe for JavaError
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