ask-cli-x
Version:
Alexa Skills Kit (ASK) Command Line Interfaces
29 lines (28 loc) • 1.02 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.RetriableServiceError = exports.CliRetriableError = void 0;
const cli_error_1 = __importDefault(require("./cli-error"));
class CliRetriableError extends cli_error_1.default {
constructor(message) {
super(message);
this.name = "CliRetriableError";
if (Object.setPrototypeOf) {
Object.setPrototypeOf(this, new.target.prototype);
}
}
}
exports.CliRetriableError = CliRetriableError;
class RetriableServiceError extends CliRetriableError {
constructor(message, body) {
super(message);
this.name = "RetriableServiceError";
this.payload = body;
if (Object.setPrototypeOf) {
Object.setPrototypeOf(this, new.target.prototype);
}
}
}
exports.RetriableServiceError = RetriableServiceError;