The .drft container · class
DrftError
Thrown for any malformed or unreadable file, with the offset that failed.
Explained in The .drft container.
class DrftError extends Errorimport { DrftError } from '@driftengine/drft';In depth
One error type rather than several, because every caller does the same thing with it:
a .drft that cannot be read is an asset that cannot be shown, and the useful part is
the message. Loading fails loudly at init; nothing partial is ever returned.
Constructor
new
constructor(message: string)| Parameter | Type | Description |
|---|---|---|
message | string |