pub enum GrimoireCssError {
Io(Error),
Regex(Error),
Serde(Error),
InvalidSpellFormat(String),
InvalidInput(String),
InvalidPath(String),
GlobPatternError(String),
RuntimeError(String),
}
Expand description
Represents all possible errors that can occur in the Grimoire CSS system.
This enum consolidates different error types from various operations into a single error type, making error handling consistent throughout the application.
Variants§
Io(Error)
IO errors during file operations
Regex(Error)
Regular expression parsing or execution errors
Serde(Error)
JSON serialization/deserialization errors
InvalidSpellFormat(String)
Invalid spell format (e.g., malformed class names or templates)
InvalidInput(String)
General input validation errors
InvalidPath(String)
Invalid file or directory path errors
GlobPatternError(String)
Errors in glob pattern syntax or matching
RuntimeError(String)
Runtime errors that don’t fit other categories
Trait Implementations§
Source§impl Debug for GrimoireCssError
impl Debug for GrimoireCssError
Source§impl Display for GrimoireCssError
impl Display for GrimoireCssError
Source§impl Error for GrimoireCssError
impl Error for GrimoireCssError
1.30.0 · 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()
Source§impl From<Error> for GrimoireCssError
impl From<Error> for GrimoireCssError
Source§impl From<Error> for GrimoireCssError
impl From<Error> for GrimoireCssError
Auto Trait Implementations§
impl Freeze for GrimoireCssError
impl !RefUnwindSafe for GrimoireCssError
impl Send for GrimoireCssError
impl Sync for GrimoireCssError
impl Unpin for GrimoireCssError
impl !UnwindSafe for GrimoireCssError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more