pub enum PostCSSError {
Show 14 variants
ParseError {
message: String,
line: usize,
column: usize,
},
TransformError {
message: String,
},
PluginError {
message: String,
},
JavaScriptBridgeError {
message: String,
},
SourceMapError {
message: String,
},
ConfigError {
message: String,
},
InvalidAST(String),
JavaScriptBridgeNotAvailable,
PluginNotFound {
name: String,
},
PluginExecutionFailed {
name: String,
message: String,
},
MemoryError {
message: String,
},
IoError(String),
SerializationError(String),
Generic(String),
}Expand description
Main error type for PostCSS operations
Variants§
ParseError
TransformError
PluginError
JavaScriptBridgeError
SourceMapError
ConfigError
InvalidAST(String)
JavaScriptBridgeNotAvailable
PluginNotFound
PluginExecutionFailed
MemoryError
IoError(String)
SerializationError(String)
Generic(String)
Trait Implementations§
Source§impl Clone for PostCSSError
impl Clone for PostCSSError
Source§fn clone(&self) -> PostCSSError
fn clone(&self) -> PostCSSError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PostCSSError
impl Debug for PostCSSError
Source§impl Display for PostCSSError
impl Display for PostCSSError
Source§impl Error for PostCSSError
impl Error for PostCSSError
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 PostCSSError
impl From<Error> for PostCSSError
Source§impl From<Error> for PostCSSError
impl From<Error> for PostCSSError
Auto Trait Implementations§
impl Freeze for PostCSSError
impl RefUnwindSafe for PostCSSError
impl Send for PostCSSError
impl Sync for PostCSSError
impl Unpin for PostCSSError
impl UnwindSafe for PostCSSError
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