Crate rspack_error

Crate rspack_error 

Source

Re-exports§

pub use miette;
pub use thiserror;

Modules§

emitter

Macros§

error
error_bail
impl_diagnostic_transparent
impl_empty_diagnosable_trait
impl_error_transparent

Structs§

AnyhowError
Handle anyhow::Error Please try NOT to use this as much as possible.
ArchivedSourcePosition
An archived SourcePosition
BatchErrors
Multiple errors to represent different kinds of errors. NEVER implement this with miette::Diagnostic, because it makes code hard to maintain.
CatchUnwindFuture
Diagnostic
DiagnosticError
Convenience Diagnostic that can be used as an “anonymous” wrapper for Errors. This is intended to be paired with [IntoDiagnostic].
InternalError
NodeError
(message, stack, backtrace, hide_stack)
SourcePosition
SourcePositionResolver
The resolver for an archived SourcePosition
TWithDiagnosticArray
A helper struct for change logic from return something to something with diagnostics array
TraceableError
Warning

Enums§

RspackSeverity

Traits§

AnyhowResultToRspackResultExt
Diagnosable
DiagnosticExt
ErrorExt
Useful to convert std::error::Error to crate::DiagnosticError
IntoTWithDiagnosticArray
MietteExt
SerdeResultToRspackResultExt
ToStringResultToRspackResultExt

Functions§

catch_unwind
errors_to_diagnostics

Type Aliases§

Error
Result
Severity