BohemiaInteractive/bi-service

View on GitHub
lib/error/routerError.js

Summary

Maintainability
A
1 hr
Test Coverage
const util = require('util');

module.exports = RouterError;

/**
 * @constructor
 * @extends Error
 **/
function RouterError(message) {

    Error.call(this); //super constructor
    Error.captureStackTrace(this, this.constructor);

    this.name = this.constructor.name;
    this.message = message;
}

util.inherits(RouterError, Error);