de.danet.an.workflow.spis.aii
Class ExceptionMappingProvider.ExceptionMapping

java.lang.Object
  extended byde.danet.an.workflow.spis.aii.ExceptionMappingProvider.ExceptionMapping
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ExceptionMappingProvider

public static class ExceptionMappingProvider.ExceptionMapping
extends java.lang.Object
implements java.io.Serializable

Define a single exception mapping.

See Also:
Serialized Form

Constructor Summary
ExceptionMappingProvider.ExceptionMapping(java.lang.Class javaException)
          Create a new mapping.
ExceptionMappingProvider.ExceptionMapping(java.lang.Class javaException, java.lang.String processException)
          Create a new mapping.
ExceptionMappingProvider.ExceptionMapping(java.lang.Class javaException, java.lang.String processException, boolean suspend)
          Create a new mapping.
 
Method Summary
 java.lang.Class getJavaException()
          Get the value of javaException.
 java.lang.String getProcessException()
          Get the value of processException.
 boolean getSuspendActivity()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionMappingProvider.ExceptionMapping

public ExceptionMappingProvider.ExceptionMapping(java.lang.Class javaException,
                                                 java.lang.String processException)
Create a new mapping. If the tool throws a CannotExecuteException with a Java exception of the given class (or derived from the given class) as cause, then this Java exception is mapped to the given process exception.

Parameters:
javaException - the Java exception
processException - the process exception

ExceptionMappingProvider.ExceptionMapping

public ExceptionMappingProvider.ExceptionMapping(java.lang.Class javaException,
                                                 java.lang.String processException,
                                                 boolean suspend)
Create a new mapping. If the tool throws a CannotExecuteException with a Java exception of the given class (or derived from the given class) as cause, then the invoking activity is suspended.

Parameters:
javaException - the Java exception
processException - the process exception
suspend - if true the invoking activity is suspended

ExceptionMappingProvider.ExceptionMapping

public ExceptionMappingProvider.ExceptionMapping(java.lang.Class javaException)
Create a new mapping. If the tool throws a CannotExecuteException with a Java exception of the given class (or derived from the given class) as cause, then the invoking activity is suspended.

Parameters:
javaException - the Java exception
Method Detail

getJavaException

public java.lang.Class getJavaException()
Get the value of javaException.

Returns:
value of javaException.

getProcessException

public java.lang.String getProcessException()
Get the value of processException.

Returns:
value of processException.

getSuspendActivity

public boolean getSuspendActivity()
Returns:
Returns true if the invoking activity is to be suspended in response to the exception.