UNPKG

@belgattitude/http-exception

Version:

Warning: has been moved to @httpx/exception. Please update.

18 lines (15 loc) 790 B
import { inherits as _inherits, createClass as _createClass, assertThisInitialized as _assertThisInitialized } from '../_virtual/_rollupPluginBabelHelpers.js'; import { HttpException } from './HttpException.js'; import { getSuper } from '../utils/getSuper.js'; var HttpServerException = function (_HttpException) { _inherits(HttpServerException, _HttpException); function HttpServerException(statusCode, msgOrParams) { var _this; _this = _HttpException.call(this, statusCode, getSuper('HttpServerException', msgOrParams)) || this; Object.setPrototypeOf(_assertThisInitialized(_this), HttpServerException.prototype); _this.name = 'HttpServerException'; return _this; } return _createClass(HttpServerException); }(HttpException); export { HttpServerException };