%PDF- %PDF-
Direktori : /www/specpages-backup/node_modules/warehouse/lib/ |
Current File : //www/specpages-backup/node_modules/warehouse/lib/error.js |
'use strict'; class WarehouseError extends Error { /** * WarehouseError constructor * * @param {string} msg * @param {string} code */ constructor(msg, code) { super(msg); Error.captureStackTrace(this); this.code = code; } } WarehouseError.prototype.name = 'WarehouseError'; WarehouseError.ID_EXIST = 'ID_EXIST'; WarehouseError.ID_NOT_EXIST = 'ID_NOT_EXIST'; WarehouseError.ID_UNDEFINED = 'ID_UNDEFINED'; module.exports = WarehouseError;