AssetError class
Rejects `Asset.ready`.
import { AssetError } from '@dioramajs/diorama/assets'Reported as asset:<url>, which the kernel wraps as REPORTED.
class AssetErrorMembers
| Name | Type | Description |
|---|---|---|
constructor | | |
cause? | unknown | |
readonly code | AssetErrorCode | Error code, the key of its page in the docs. |
message | string | |
readonly name | 'AssetError' | Always Default |
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. |
readonly url | string | undefined | URL of the asset, if the error has one. |
captureStackTrace | | Creates a The first line of the trace will be prefixed with The optional The |
prepareStackTrace | |
Also exported from @dioramajs/assets.
Defined in packages/assets/src/errors.ts.