|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectThrowable
Exception
InterceptorPivotException
public class InterceptorPivotException
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.
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 |
---|
public InterceptorPivotException(String interceptorName)
interceptorName
- name of the interceptor that generated this exceptionpublic InterceptorPivotException(String interceptorName, Object returnValue)
interceptorName
- name of the interceptor that generated this exceptionreturnValue
- the return value of the method that is intercepted.public InterceptorPivotException(String interceptorName, Object returnValue, String message)
interceptorName
- name of the interceptor that generated this exceptionreturnValue
- the return value of the method that is intercepted.message
- The message to use.public InterceptorPivotException(String interceptorName, String message)
interceptorName
- name of the interceptor that generated this exceptionmessage
- The message to use.Method Detail |
---|
public String getInterceptorName()
public Object getReturnValue()
public void setInterceptorName(String interceptorName)
interceptorName
- The interceptorName to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |