API reference / Common / UDocError
Class: UDocError
Extends
Error
Constructors
Constructor
ts
new UDocError(
code,
message,
detail?,
options?
): UDocError;Parameters
| Parameter | Type |
|---|---|
code | UDocErrorCode |
message | string |
detail? | UDocErrorDetail |
options? | ErrorOptions |
Properties
code
ts
readonly code: UDocErrorCode;detail?
ts
readonly optional detail?: UDocErrorDetail;Methods
from()
ts
static from(thrown): UDocError;The one classifier: what the engine threw, a trap, or anything else.
Parameters
| Parameter | Type |
|---|---|
thrown | unknown |