lib/error.js
function MIDIEncoderError(actual, expected) {
    Error.call(this);
    Error.captureStackTrace(this, this.constructor);

    this.name = this.constructor.name;
    this.actual = actual;
    this.expected = expected;

    actual = format(actual);
    expected = format(expected);

    this.message = 'MIDI encoding error: expected ' +
        expected + ' but found ' + actual;
}
function MIDIEncoderError(actual, expected) {
    Error.call(this);
    Error.captureStackTrace(this, this.constructor);

    this.name = this.constructor.name;
    this.actual = actual;
    this.expected = expected;

    actual = format(actual);
    expected = format(expected);

    this.message = 'MIDI encoding error: expected ' +
        expected + ' but found ' + actual;
}
function MIDIEncoderError ( actual , expected ) { Error . call ( this ) ; Error . captureStackTrace ( this , this . constructor ) ; this . name = this . constructor . name ; this . actual = actual ; this . expected = expected ; actual = format ( actual ) ; expected = format ( expected ) ; this . message = 'MIDI encoding error: expected ' + expected + ' but found ' + actual ; }
Construct a new MIDIEncoderError

@class MIDIEncoderError
@extends Error
@classdesc An error that occured while encoding a MIDI file

@param {*} actual Actual value
@param {*} expected Expected value
Construct a new MIDIEncoderError