Struct symbolic::debuginfo::sourcebundle::SourceBundleError [−][src]
pub struct SourceBundleError { /* fields omitted */ }
Expand description
An error returned when handling SourceBundle
.
Implementations
pub fn new<E>(kind: SourceBundleErrorKind, source: E) -> SourceBundleError where
E: Into<Box<dyn Error + Send + Sync + 'static, Global>>,
pub fn new<E>(kind: SourceBundleErrorKind, source: E) -> SourceBundleError where
E: Into<Box<dyn Error + Send + Sync + 'static, Global>>,
Creates a new SourceBundle error from a known kind of error as well as an arbitrary error payload.
This function is used to generically create source bundle errors which do not originate from
symbolic
itself. The source
argument is an arbitrary payload which will be contained in
this SourceBundleError
.
Returns the corresponding SourceBundleErrorKind
for this error.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for SourceBundleError
impl Send for SourceBundleError
impl Sync for SourceBundleError
impl Unpin for SourceBundleError
impl !UnwindSafe for SourceBundleError
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
pub fn extract_context(self, _original_input: I)
pub fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more
impl<T> Indentable for T where
T: Display,
impl<T> Indentable for T where
T: Display,
fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>
fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>
pub fn recreate_context(_original_input: I, tail: I) -> I
pub fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. Read more