We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de6204f commit e05be77Copy full SHA for e05be77
components/error/actions/throw-error/throw-error.mjs
@@ -0,0 +1,20 @@
1
+import app from "../../error.app.mjs";
2
+
3
+export default {
4
+ name: "Throw Error",
5
+ version: "0.0.1",
6
+ key: "error-throw-error",
7
+ description: "Quickly throw an error from your workflow.",
8
+ props: {
9
+ app,
10
+ errorMessage: {
11
+ type: "string",
12
+ label: "Error Message",
13
+ description: "The error message to throw",
14
+ },
15
16
+ type: "action",
17
+ async run() {
18
+ throw new Error(this.errorMessage);
19
20
+};
0 commit comments