pub enum GGError {
IOError(Error),
FormatError(Error),
SyntaxError(String),
TypeMismatch(String),
RuntimeError(String),
UndefinedVariable {
name: String,
},
Unreachable,
}
Expand description
Error type for all tailwind operators
Variants§
IOError(Error)
The error type for I/O operations
FormatError(Error)
The error type which is returned from formatting a message into a stream.
SyntaxError(String)
The error type which is
TypeMismatch(String)
The error type which is
RuntimeError(String)
The error type which is occurred at runtime
UndefinedVariable
Runtime error when variable is undefined
Unreachable
A forbidden cst_node encountered
Implementations§
Source§impl GGError
impl GGError
Sourcepub fn syntax_error(msg: impl Into<String>) -> Self
pub fn syntax_error(msg: impl Into<String>) -> Self
Constructor of [NoteErrorKind::$t
]
Sourcepub fn type_mismatch(msg: impl Into<String>) -> Self
pub fn type_mismatch(msg: impl Into<String>) -> Self
Constructor of [NoteErrorKind::$t
]
Sourcepub fn runtime_error(msg: impl Into<String>) -> Self
pub fn runtime_error(msg: impl Into<String>) -> Self
Constructor of [NoteErrorKind::$t
]
Trait Implementations§
Source§impl Error for GGError
impl Error for GGError
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<Infallible> for GGError
impl From<Infallible> for GGError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<ParseColorError> for GGError
impl From<ParseColorError> for GGError
Source§fn from(e: ParseColorError) -> Self
fn from(e: ParseColorError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for GGError
impl From<ParseIntError> for GGError
Source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GGError
impl !RefUnwindSafe for GGError
impl Send for GGError
impl Sync for GGError
impl Unpin for GGError
impl !UnwindSafe for GGError
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