UNPKG

h54s

Version:

HTML5 Data Adapter for SAS

35 lines (32 loc) 681 B
/* * h54s error constructor * @constructor * *@param {string} type - Error type *@param {string} message - Error message *@param {string} status - Error status returned from SAS * */ function h54sError(type, message, status) { if(Error.captureStackTrace) { Error.captureStackTrace(this); } this.message = message; this.type = type; this.status = status; } h54sError.prototype = Object.create(Error.prototype, { constructor: { configurable: false, enumerable: false, writable: false, value: h54sError }, name: { configurable: false, enumerable: false, writable: false, value: 'h54sError' } }); module.exports = h54sError;