Structs
- A
JsError
represents an exception coming from V8, with stack frames and line numbers. The deno_cli crate defines anotherJsError
type, which wraps the one defined here, that adds source map support and colorful formatting. When updating this struct, also update errors_are_equal_without_cause() in fmt_error.rs.
Functions
- Creates a new error with a caller-specified error class name and message.
- If this error was crated with
custom_error()
, return the specified error class name. In all other cases this function returnsNone
.
Type Definitions
- A generic wrapper that can encapsulate any concrete error type.