@belgattitude/http-exception
Version:
Warning: has been moved to @httpx/exception. Please update.
24 lines (21 loc) • 928 B
JavaScript
import { inherits as _inherits, createClass as _createClass, wrapNativeSuper as _wrapNativeSuper, assertThisInitialized as _assertThisInitialized, possibleConstructorReturn as _possibleConstructorReturn } from '../../_virtual/_rollupPluginBabelHelpers.js';
var SerializerError = function (_Error) {
_inherits(SerializerError, _Error);
function SerializerError(message, params) {
var _this;
var _ref = params !== null && params !== void 0 ? params : {},
cause = _ref.cause;
if (cause) {
_this = _Error.call(this, message, {
cause: cause
}) || this;
} else {
_this = _Error.call(this, message) || this;
}
Object.setPrototypeOf(_assertThisInitialized(_this), SerializerError.prototype);
_this.name = 'SerializerError';
return _possibleConstructorReturn(_this);
}
return _createClass(SerializerError);
}(_wrapNativeSuper(Error));
export { SerializerError };