Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Commit a4ba277

Browse files
committed
add ConfigurationError class
1 parent 23e5771 commit a4ba277

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed

dist/index.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,7 @@ export declare const END_NEEDLE = "__pd_end";
124124
export declare function $end(message?: string): void;
125125
export declare let $send: SendFunctionsWrapper;
126126
export declare const $sendConfigRuntimeTypeChecker: {};
127+
export declare class ConfigurationError extends Error {
128+
exposeStack: boolean;
129+
constructor(message: string, exposeStack?: boolean);
130+
}

dist/index.js

+8
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,11 @@ exports.$sendConfigRuntimeTypeChecker = (function () {
131131
}
132132
return ret;
133133
})();
134+
class ConfigurationError extends Error {
135+
constructor(message, exposeStack = false) {
136+
super(message);
137+
this.name = "ConfigurationError";
138+
this.exposeStack = exposeStack;
139+
}
140+
}
141+
exports.ConfigurationError = ConfigurationError;

lib/index.ts

+9
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,12 @@ export const $sendConfigRuntimeTypeChecker = (function() {
163163
}
164164
return ret
165165
})()
166+
167+
export class ConfigurationError extends Error {
168+
exposeStack: boolean;
169+
constructor(message: string, exposeStack = false) {
170+
super(message)
171+
this.name = "ConfigurationError"
172+
this.exposeStack = exposeStack
173+
}
174+
}

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/platform",
3-
"version": "0.9.0",
3+
"version": "0.10.0",
44
"description": "Pipedream platform globals (typing and runtime type checking)",
55
"homepage": "https://pipedream.com",
66
"main": "dist/index.js",

0 commit comments

Comments
 (0)