pub enum ErrorCode {
Show 13 variants
FileNotFound = 101,
FileReadError = 102,
PermissionDenied = 103,
EncodingError = 104,
HighlightError = 201,
ThemeNotFound = 202,
LanguageNotFound = 203,
LanguageDetectionError = 204,
ProcessingError = 301,
ConfigurationError = 302,
JsonSerializationError = 401,
OutputError = 402,
IoError = 501,
}Expand description
Error codes for programmatic handling
Variants§
FileNotFound = 101
File system errors (100-199)
FileReadError = 102
PermissionDenied = 103
EncodingError = 104
HighlightError = 201
Syntax highlighting errors (200-299)
ThemeNotFound = 202
LanguageNotFound = 203
LanguageDetectionError = 204
ProcessingError = 301
Processing errors (300-399)
ConfigurationError = 302
JsonSerializationError = 401
Output errors (400-499)
OutputError = 402
IoError = 501
Generic errors (500-599)
Implementations§
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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