Class ErrorHandlingExample

java.lang.Object
software.amazon.lambda.durable.DurableHandler<Object,String>
software.amazon.lambda.durable.examples.ErrorHandlingExample
All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestStreamHandler

public class ErrorHandlingExample extends DurableHandler<Object,String>
Example demonstrating error handling patterns with the Durable Execution SDK.

This example shows how to handle:

  • StepFailedException - when a step exhausts all retry attempts
  • StepInterruptedException - when an AT_MOST_ONCE step is interrupted
  • Custom exceptions - original exception types are preserved and can be caught directly

Note: NonDeterministicExecutionException is thrown by the SDK when code changes between executions (e.g., step order/names changed). It should be fixed in code, not caught.

  • Constructor Details

    • ErrorHandlingExample

      public ErrorHandlingExample()
  • Method Details