pub enum HermesError {
Parse(ParseError),
Vlq(DecodeError),
InvalidFunctionMap(String),
}Expand description
Errors that can occur when parsing a Hermes source map.
Variants§
Parse(ParseError)
The underlying source map could not be parsed.
Vlq(DecodeError)
A VLQ-encoded function mapping is malformed.
InvalidFunctionMap(String)
The x_facebook_sources structure is invalid.
Trait Implementations§
Source§impl Debug for HermesError
impl Debug for HermesError
Source§impl Display for HermesError
impl Display for HermesError
Source§impl Error for HermesError
impl Error for HermesError
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<DecodeError> for HermesError
impl From<DecodeError> for HermesError
Source§fn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for HermesError
impl From<ParseError> for HermesError
Source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HermesError
impl !RefUnwindSafe for HermesError
impl Send for HermesError
impl Sync for HermesError
impl Unpin for HermesError
impl UnsafeUnpin for HermesError
impl !UnwindSafe for HermesError
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