lib/fomatto.js
function FormatError(func, msg, value) {

        this.name = 'FormatError';
        this.message = new Formatter()(msg, value);
        if (Error.captureStackTrace) {
            Error.captureStackTrace(this, func);
        }

    }
function FormatError(func, msg, value) {

        this.name = 'FormatError';
        this.message = new Formatter()(msg, value);
        if (Error.captureStackTrace) {
            Error.captureStackTrace(this, func);
        }

    }
function FormatError ( func , msg , value ) { this . name = 'FormatError' ; this . message = new Formatter ( ) ( msg , value ) ; if ( Error . captureStackTrace ) { Error . captureStackTrace ( this , func ) ; } }
Custom Error Type
Custom Error Type