org.pm4j.core.pm.impl
Class PmExceptionHandlerImpl

java.lang.Object
  extended by org.pm4j.core.pm.impl.PmExceptionHandlerImpl
All Implemented Interfaces:
PmExceptionHandler

public class PmExceptionHandlerImpl
extends java.lang.Object
implements PmExceptionHandler

TODOC:

Author:
olaf boede

Constructor Summary
PmExceptionHandlerImpl()
           
 
Method Summary
 java.lang.String getErrorPageNaviString()
           
 org.pm4j.navi.NaviLink onException(PmObject pmObject, java.lang.Throwable throwable, boolean inNaviContext)
          Will be called whenever the execution of an action failed with an exception.
protected  java.lang.String onNonPmException(PmCommand failedCommand, java.lang.Throwable throwable, boolean inNaviContext)
          This default implementation throws a PmRuntimeException for the given throwable.
 void setErrorPageNaviString(java.lang.String errorPageNaviString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmExceptionHandlerImpl

public PmExceptionHandlerImpl()
Method Detail

onException

public org.pm4j.navi.NaviLink onException(PmObject pmObject,
                                          java.lang.Throwable throwable,
                                          boolean inNaviContext)
Description copied from interface: PmExceptionHandler
Will be called whenever the execution of an action failed with an exception.

Specified by:
onException in interface PmExceptionHandler
Parameters:
pmObject - On this object the action was executed.
throwable - The exception thrown during action execution.
inNaviContext - Indicates if the returned navigation string may be considered by the framework in the current exception situation.
Returns:
A navigation string or null for no special navigation.

onNonPmException

protected java.lang.String onNonPmException(PmCommand failedCommand,
                                            java.lang.Throwable throwable,
                                            boolean inNaviContext)
This default implementation throws a PmRuntimeException for the given throwable.

Subclasses may provide different behavior.

Parameters:
failedCommand -
throwable -
Returns:

getErrorPageNaviString

public java.lang.String getErrorPageNaviString()

setErrorPageNaviString

public void setErrorPageNaviString(java.lang.String errorPageNaviString)