@appsemble/lang-sdk
Version:
Language SDK for Appsemble
17 lines (16 loc) • 611 B
JavaScript
import { BaseActionDefinition } from './BaseActionDefinition.js';
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
export const ThrowActionDefinition = extendJSONSchema(BaseActionDefinition, {
type: 'object',
additionalProperties: false,
required: ['type'],
properties: {
type: {
enum: ['throw'],
description: `This action throws a new exception based on the data that is passed through.
This can be used to create a custom error that ends up in the error action handler.
`,
},
},
});
//# sourceMappingURL=ThrowActionDefinition.js.map