lib/error.js
function JFP_Error(message) {
    Error.call(this, message);

    Object.defineProperty(this, "name", {
        value: this.constructor.name
    });

    Object.defineProperty(this, "message", {
        value: message
    });

    if (Error.captureStackTrace) {
        Error.captureStackTrace(this, this.constructor);
    } else {
        Object.defineProperty(this, "stack", {
            value: (new Error()).stack
        });
    }
}
function JFP_Error(message) {
    Error.call(this, message);

    Object.defineProperty(this, "name", {
        value: this.constructor.name
    });

    Object.defineProperty(this, "message", {
        value: message
    });

    if (Error.captureStackTrace) {
        Error.captureStackTrace(this, this.constructor);
    } else {
        Object.defineProperty(this, "stack", {
            value: (new Error()).stack
        });
    }
}
function JFP_Error ( message ) { Error . call ( this , message ) ; Object . defineProperty ( this , "name" , { value : this . constructor . name } ) ; Object . defineProperty ( this , "message" , { value : message } ) ; if ( Error . captureStackTrace ) { Error . captureStackTrace ( this , this . constructor ) ; } else { Object . defineProperty ( this , "stack" , { value : ( new Error ( ) ) . stack } ) ; } }
JFP_Error - base error class
@param {string} message
@constructor
JFP_Error - base error class