'use strict';
const inherits = require('util').inherits;
/**
* @class
* @classdesc Exception type for service-side issues
*
* @property {Number} code - Error code
* @property {String} message - Error description
*/
function SessionError(message, code) {
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
this.message = message;
this.code = code;
}
inherits(SessionError, Error);
module.exports = SessionError;