org.apache.myfaces.extensions.validator.core.renderkit.exception
Class SkipRendererDelegationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.myfaces.extensions.validator.core.renderkit.exception.SkipRendererDelegationException
All Implemented Interfaces:
Serializable

public class SkipRendererDelegationException
extends Exception

Exception that can be thrown by a (RendererInterceptor) to skip the invocation of the intercepted renderer method.

Since:
1.x.1
Author:
Gerhard Petracek
See Also:
Serialized Form

Field Summary
protected  RendererInterceptor exceptionSource
           
protected  Object information
           
 
Constructor Summary
SkipRendererDelegationException()
          Constructor for creating an exception which doesn't skip the invocation of the other interceptors.
SkipRendererDelegationException(boolean skipOtherInterceptors)
          Constructor for creating an exception which might skip the invocation of the other interceptors.
SkipRendererDelegationException(boolean skipOtherInterceptors, RendererInterceptor rendererInterceptor)
          Constructor for creating an exception which doesn't skip the invocation of the other interceptors.
 
Method Summary
 Object getInformation()
          Returns the additional information.
 Object getReturnValueOnException(Object currentReturnValue)
          Returns the value which should be used as result (if the intercepted method has to provide a return value).
 boolean isSkipOtherInterceptors()
          Signals if the subsequent interceptors should be skipped.
 void setInformation(Object information)
          Sets an additional object with information.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

exceptionSource

protected RendererInterceptor exceptionSource

information

protected Object information
Constructor Detail

SkipRendererDelegationException

public SkipRendererDelegationException()
Constructor for creating an exception which doesn't skip the invocation of the other interceptors.


SkipRendererDelegationException

public SkipRendererDelegationException(boolean skipOtherInterceptors)
Constructor for creating an exception which might skip the invocation of the other interceptors.

Parameters:
skipOtherInterceptors - signals if the other interceptors should be skipped.

SkipRendererDelegationException

public SkipRendererDelegationException(boolean skipOtherInterceptors,
                                       RendererInterceptor rendererInterceptor)
Constructor for creating an exception which doesn't skip the invocation of the other interceptors. Furthermore, it allows to get information about the RendererInterceptor which threw the exception.

Parameters:
skipOtherInterceptors - signals if the other interceptors should be skipped.
rendererInterceptor - interceptor which threw this exception.
Method Detail

setInformation

public void setInformation(Object information)
Sets an additional object with information.

Parameters:
information - some additional information.

getInformation

public Object getInformation()
Returns the additional information.

Returns:
the additional information.

isSkipOtherInterceptors

public boolean isSkipOtherInterceptors()
Signals if the subsequent interceptors should be skipped.

Returns:
true if the subsequent interceptors should be skipped, false otherwise

getReturnValueOnException

public Object getReturnValueOnException(Object currentReturnValue)
Returns the value which should be used as result (if the intercepted method has to provide a return value).

Parameters:
currentReturnValue - the original converted value
Returns:
value that should be returned as converted value.


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.