UNPKG

@beenotung/tslib

Version:
22 lines (21 loc) 541 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HttpError = exports.NotImplError = void 0; exports.not_impl = not_impl; class NotImplError extends Error { } exports.NotImplError = NotImplError; function not_impl() { throw new NotImplError(); } class HttpError extends Error { status; constructor(status, message) { super(message); this.status = status; } toString() { return `HttpError(${this.status}): ${this.message}`; } } exports.HttpError = HttpError;