A decoder went past a limit; carries the limit's name so a game can say what to raise or what to refuse.
import { DecodeBudgetError } from '@datamoc/mwg/audio';const error = new DecodeBudgetError('maxInputBytes', 'tune.nsf is larger than the limit');console.log(error.limit); // 'maxInputBytes' Copy
import { DecodeBudgetError } from '@datamoc/mwg/audio';const error = new DecodeBudgetError('maxInputBytes', 'tune.nsf is larger than the limit');console.log(error.limit); // 'maxInputBytes'
Readonly
A decoder went past a limit; carries the limit's name so a game can say what to raise or what to refuse.
Example