1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | class 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 | }
|
16 | exports.CloudBaseError = CloudBaseError;
|