API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classAssetDecodeError
Raised when bytes that were successfully obtained cannot be turned into a resource: a malformed container index, an XML document the parser rejected, audio the browser could not decode, an empty buffer. Distinct from AssetNetworkError and AssetCacheError because the reaction differs: a transport failure is worth retrying and a cache failure is worth ignoring, while broken content stays broken - the asset has to be dropped or the file fixed. Narrow with `error instanceof AssetDecodeError`; the decoder's own error stays reachable through Error.cause.
import { AssetDecodeError } from '@codexo/exojs'Raised when bytes that were successfully obtained cannot be turned into a resource: a malformed container index, an XML document the parser rejected, audio the browser could not decode, an empty buffer.
Distinct from AssetNetworkError and AssetCacheError because the reaction differs: a transport failure is worth retrying and a cache failure is worth ignoring, while broken content stays broken - the asset has to be dropped or the file fixed. Narrow with `error instanceof AssetDecodeError`; the decoder's own error stays reachable through Error.cause.
new(options: AssetDecodeErrorOptionsConstruction options for an AssetDecodeError.): AssetDecodeErrorassetType: null | stringcause?: unknownmessage: stringname: stringstack?: string