Class WrongExecutionManagerException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.aristaflow.adept2.model.execution.WrongExecutionManagerException
All Implemented Interfaces:
Serializable

public class WrongExecutionManagerException extends RuntimeException
A WrongExecutionManagerException indicates that the wrong execution manager has been called. The called execution manager does not manage the designated activity.
Author:
Ulrich Kreher
See Also:
  • Field Details

    • expectedExecutionManager

      protected URI[] expectedExecutionManager
      The communication protocol depended URIs of the execution manager that is expected by the caller of an ActivityStarting- or ActivityTermination-method.
      See Also:
    • actualExecutionManager

      protected URI[] actualExecutionManager
      The communication protocol depended URIs assigned to the execution manager that is actually called.
  • Constructor Details

    • WrongExecutionManagerException

      public WrongExecutionManagerException(URI[] expectedExecutionManager, URI[] actualExecutionManager)
      Constructs a new WrongExecutionManagerException to indicate that the called execution manager does not manage the designated activity.
      Parameters:
      expectedExecutionManager - The communication protocol depended URIs of that execution manager which is expected by the caller of an ActivityExecution-method.
      actualExecutionManager - The communication protocol depended URIs of that execution manager which is actually called.
  • Method Details

    • getExpectedExecutionManager

      public URI[] getExpectedExecutionManager()
      Gets the communication protocol depended URIs assigned to that execution manager which the client expected.
      Returns:
      The expected execution manager identified by its assigned URIs.
    • getActualExecutionManager

      public URI[] getActualExecutionManager()
      Gets the communication protocol depended URIs assigned to that execution manager which received the request.
      Returns:
      The actual execution manager identified by its assigned URIs.