Crate rspack_error

Crate rspack_error 

Source

Macros§

error
error_bail
impl_empty_diagnosable_trait

Structs§

BatchErrors
Multiple errors to represent different kinds of errors. NEVER implement this with miette::Diagnostic, because it makes code hard to maintain.
Diagnostic
Error
ErrorData wrapper type.
ErrorData
Core error type.
Label
Label for source code.
Renderer
StdioDisplayer
StringDisplayer
TWithDiagnosticArray
A helper struct for change logic from return something to something with diagnostics array

Enums§

Severity
Error severity. Defaults to Severity::Error.

Traits§

AnyhowResultToRspackResultExt
Diagnosable
Display
IntoTWithDiagnosticArray
SerdeResultToRspackResultExt
ToStringResultToRspackResultExt

Functions§

cyan
Color the text cyan if the stream supports color.
dim
Dim the text if the stream supports color.
red
Color the text red if the stream supports color.
yellow
Color the text yellow if the stream supports color.

Type Aliases§

Result