Class CatchContext


public class CatchContext extends ArgumentBasedContext
  • Constructor Details

  • Method Details

    • transmitErrorInfo

      protected void transmitErrorInfo(Justification details)
      Transmits error information to the catch context. To add support for a new failure state, add an new case in the switch statement, changing the type cast to the appropriate type for the error status. See setupArguments().
      Parameters:
      details - details about the error
    • setupArguments

      protected void setupArguments(List<? extends Object> inputArgs, List<? extends Object> returnArgs)
      Sets up the arguments for the catch context. To add support for a new failure state, add a new case in the switch statement, creating an ActionBinding for the appropriate type (error message type). See transmitErrorInfo().
      Specified by:
      setupArguments in class ArgumentBasedContext
      Parameters:
      inputArgs -
      returnArgs -
    • setupNextStep

      protected void setupNextStep()
      Description copied from class: Context
      If Context can have next steps (i.e., children), implement this method to add the next child context that should be executed.
      Overrides:
      setupNextStep in class Context
    • getStatusToCatch

      public ActionStatus getStatusToCatch()
      Get ActionStatus that this CatchContext is capable of catching.
      Returns:
    • copy

      public CatchContext copy(Context newParent)
      Description copied from class: Context
      deep copy of the context, its status, and its children
      Specified by:
      copy in class Context
      Parameters:
      newParent - parent to attach the copied context too
      Returns:
      the copied context