org.apache.beehive.controls.spi.svc
Class InterceptorPivotException

Object
  extended by Throwable
      extended by Exception
          extended by InterceptorPivotException
All Implemented Interfaces:
Serializable

public class InterceptorPivotException
extends Exception

The InterceptorPivotException class declares a checked exception that is thrown by an Interceptor upon pivoting. For example, if an interceptor wishes to stop a method from executing further and return a value, it can throw this exception and embed in the exception the return value that it wishes the method to return.

See Also:
Serialized Form

Constructor Summary
InterceptorPivotException(String interceptorName)
          Constructs a InterceptorPivotException object with the specified interceptor.
InterceptorPivotException(String interceptorName, Object returnValue)
          Constructs a InterceptorPivotException object with the specified interceptor and return value for the method that is intercepted.
InterceptorPivotException(String interceptorName, Object returnValue, String message)
          Constructs a ServiceException object using the specified interceptor, the return value for the method that is intercepted and message.
InterceptorPivotException(String interceptorName, String message)
          Constructs a ServiceException object using the specified interceptor and a message.
 
Method Summary
 String getInterceptorName()
           
 Object getReturnValue()
           
 void setInterceptorName(String interceptorName)
           
 
Methods inherited from class Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InterceptorPivotException

public InterceptorPivotException(String interceptorName)
Constructs a InterceptorPivotException object with the specified interceptor.

Parameters:
interceptorName - name of the interceptor that generated this exception

InterceptorPivotException

public InterceptorPivotException(String interceptorName,
                                 Object returnValue)
Constructs a InterceptorPivotException object with the specified interceptor and return value for the method that is intercepted.

Parameters:
interceptorName - name of the interceptor that generated this exception
returnValue - the return value of the method that is intercepted.

InterceptorPivotException

public InterceptorPivotException(String interceptorName,
                                 Object returnValue,
                                 String message)
Constructs a ServiceException object using the specified interceptor, the return value for the method that is intercepted and message.

Parameters:
interceptorName - name of the interceptor that generated this exception
returnValue - the return value of the method that is intercepted.
message - The message to use.

InterceptorPivotException

public InterceptorPivotException(String interceptorName,
                                 String message)
Constructs a ServiceException object using the specified interceptor and a message.

Parameters:
interceptorName - name of the interceptor that generated this exception
message - The message to use.
Method Detail

getInterceptorName

public String getInterceptorName()
Returns:
Returns the interceptorName.

getReturnValue

public Object getReturnValue()
Returns:
Returns the returnValue.

setInterceptorName

public void setInterceptorName(String interceptorName)
Parameters:
interceptorName - The interceptorName to set.