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 Error
import { 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)
ParameterTypeDescription
messagestring