Structs§
- JsError
- 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. - JsStack
Frame
Functions§
- bad_
resource - bad_
resource_ id - custom_
error - Creates a new error with a caller-specified error class name and message.
- format_
file_ name - generic_
error - get_
custom_ error_ class - If this error was crated with
custom_error()
, return the specified error class name. In all other cases this function returnsNone
. - invalid_
hostname - not_
supported - range_
error - resource_
unavailable - throw_
type_ error - to_
v8_ error - type_
error - uri_
error
Type Aliases§
- AnyError
- A generic wrapper that can encapsulate any concrete error type.
- GetError
Class Fn - JsError
Create Fn