UNPKG

@wmfs/statebox

Version:

Orchestrate Node functions using Amazon States Language

19 lines (17 loc) 312 B
'use strict' module.exports = class Failure { run (event, context) { // generate an exception const hello = null try { hello.oh_dear() } catch (err) { context.sendTaskFailure( { error: 'ExceptionHandler', cause: err } ) } } // run }