src/models/exception.js
function Exception(code, message) {
    Error.captureStackTrace(this, Exception);
    this.name = Exception.name;
    this.code = code;
    this.message = message;
}
function Exception(code, message) {
    Error.captureStackTrace(this, Exception);
    this.name = Exception.name;
    this.code = code;
    this.message = message;
}
function Exception ( code , message ) { Error . captureStackTrace ( this , Exception ) ; this . name = Exception . name ; this . code = code ; this . message = message ; }
Exception object. Extended from Error to support having the error code attribute.

@param {integer} code
@param {string} message
Exception object . Extended from Error to support having the error code attribute .