bin/exception.js
function Exception(code, message) {
    const factory = Object.create(Exception.prototype);
    factory.code = code;
    factory.message = message;
    factory.stack = factory.toString();
    return factory;
}
function Exception(code, message) {
    const factory = Object.create(Exception.prototype);
    factory.code = code;
    factory.message = message;
    factory.stack = factory.toString();
    return factory;
}
function Exception ( code , message ) { const factory = Object . create ( Exception . prototype ) ; factory . code = code ; factory . message = message ; factory . stack = factory . toString ( ) ; return factory ; }
Create a swagger response instance.
@param {Number} code
@param {String} [message]
@returns {Exception}
@constructor
Create a swagger response instance .