mwg API
    Preparing search index...

    Class DecodeBudgetError

    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'

    Hierarchy

    • Error
      • DecodeBudgetError
    Index
    limit: keyof DecoderLimits