DioramaError class
An error of the kernel or a plugin.
import { DioramaError } from '@dioramajs/diorama/core'Its message reads [diorama] CODE: message.
class DioramaErrorMembers
| Name | Type | Description |
|---|---|---|
constructor | | |
cause? | unknown | |
readonly code | ErrorCode | Error code, the key of its page in the docs. |
message | string | |
name | string | |
readonly plugin | string | undefined | Plugin the error comes from, if any. |
readonly problems | readonly DioramaError[] | Every problem found, when the error collects several. |
stack? | string | |
stackTraceLimit | number | The The default value is If set to a non-number value, or set to a negative number, stack traces will not capture any frames. |
captureStackTrace | | Creates a The first line of the trace will be prefixed with The optional The |
prepareStackTrace | |
Also exported from @dioramajs/core.
Defined in packages/core/src/kernel/errors.ts.