pub enum RazError {
Io(Error),
Config {
message: String,
},
Analysis {
message: String,
},
Execution {
command: String,
},
Provider {
provider: String,
message: String,
},
InvalidWorkspace {
path: PathBuf,
},
Parse {
message: String,
},
FeatureUnavailable {
feature: String,
},
Timeout {
operation: String,
},
Internal {
message: String,
},
}Expand description
Main error type for RAZ operations
Variants§
Implementations§
Source§impl RazError
impl RazError
pub fn config(message: impl Into<String>) -> Self
pub fn analysis(message: impl Into<String>) -> Self
pub fn execution(command: impl Into<String>) -> Self
pub fn provider(provider: impl Into<String>, message: impl Into<String>) -> Self
pub fn invalid_workspace(path: impl Into<PathBuf>) -> Self
pub fn parse(message: impl Into<String>) -> Self
pub fn timeout(operation: impl Into<String>) -> Self
pub fn internal(message: impl Into<String>) -> Self
Trait Implementations§
Source§impl Error for RazError
impl Error for RazError
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 !RefUnwindSafe for RazError
impl !UnwindSafe for RazError
impl Freeze for RazError
impl Send for RazError
impl Sync for RazError
impl Unpin for RazError
impl UnsafeUnpin for RazError
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
Source§impl<T> Contextual for Twhere
T: Display,
impl<T> Contextual for Twhere
T: Display,
Source§fn with_context(&self, context: impl Display) -> String
fn with_context(&self, context: impl Display) -> String
Format with additional context