|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--org.apache.avalon.framework.CascadingException | +--org.apache.avalon.framework.service.ServiceException
The exception thrown to indicate a problem with service. It is usually thrown by ServiceManager or ServiceSelector.
Constructor Summary | |
ServiceException(java.lang.String message)
Deprecated. use the String,String version instead |
|
ServiceException(java.lang.String role,
java.lang.String message)
Construct a new ServiceException instance. |
|
ServiceException(java.lang.String role,
java.lang.String message,
java.lang.Throwable throwable)
Construct a new ServiceException instance. |
|
ServiceException(java.lang.String message,
java.lang.Throwable throwable)
Deprecated. use the String,String,Throwable version instead |
Method Summary | |
java.lang.String |
getMessage()
Override super's message to add role if applicable. |
java.lang.String |
getRole()
Return the role that caused the exception |
Methods inherited from class org.apache.avalon.framework.CascadingException |
getCause |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ServiceException(java.lang.String message, java.lang.Throwable throwable)
ServiceException
instance.
message
- the exception messagethrowable
- the throwablepublic ServiceException(java.lang.String role, java.lang.String message, java.lang.Throwable throwable)
ServiceException
instance.
message
- the exception messagethrowable
- the throwablepublic ServiceException(java.lang.String message)
ServiceException
instance.
message
- the exception messagepublic ServiceException(java.lang.String role, java.lang.String message)
ServiceException
instance.
message
- the exception messageMethod Detail |
public java.lang.String getRole()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |