UNPKG

539 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3class CloudBaseError extends Error {
4 constructor(message, options = {}) {
5 super();
6 this.name = 'CloudBaseError';
7 this.message = message;
8 const { code = '', action = '', original = null, requestId = '', meta = {} } = options;
9 this.original = original;
10 this.code = code;
11 this.requestId = requestId;
12 this.action = action;
13 this.meta = meta;
14 }
15}
16exports.CloudBaseError = CloudBaseError;