How can I write different handlers in TypeScript for ThrottlingException and ExecutionLimitExceeded when starting a StepFunction execution?
new StepFunction.startExecution({}, (err, data) => {
if (err) {
// Need to identify ThrottlingException and ExecutionLimitExceeded
} else {
// Process the data
}
});