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
AWrongExecutionManagerException
indicates that the wrong execution manager has been called. The called execution manager does not manage the designated activity.- Author:
- Ulrich Kreher
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected URI[]
actualExecutionManager
The communication protocol depended URIs assigned to the execution manager that is actually called.protected URI[]
expectedExecutionManager
The communication protocol depended URIs of the execution manager that is expected by the caller of anActivityStarting
- orActivityTermination
-method.
-
Constructor Summary
Constructors Constructor Description WrongExecutionManagerException(URI[] expectedExecutionManager, URI[] actualExecutionManager)
Constructs a newWrongExecutionManagerException
to indicate that the called execution manager does not manage the designated activity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URI[]
getActualExecutionManager()
Gets the communication protocol depended URIs assigned to that execution manager which received the request.URI[]
getExpectedExecutionManager()
Gets the communication protocol depended URIs assigned to that execution manager which the client expected.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
expectedExecutionManager
protected URI[] expectedExecutionManager
The communication protocol depended URIs of the execution manager that is expected by the caller of anActivityStarting
- orActivityTermination
-method.- See Also:
ActivityStarting
,ActivityTermination
-
actualExecutionManager
protected URI[] actualExecutionManager
The communication protocol depended URIs assigned to the execution manager that is actually called.
-
-
Constructor Detail
-
WrongExecutionManagerException
public WrongExecutionManagerException(URI[] expectedExecutionManager, URI[] actualExecutionManager)
Constructs a newWrongExecutionManagerException
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 anActivityExecution
-method.actualExecutionManager
- The communication protocol depended URIs of that execution manager which is actually called.
-
-
Method Detail
-
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.
-
-