|
||||||||||
| 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(String message)
Deprecated. use the String,String version instead |
|
ServiceException(String key,
String message)
Construct a new ServiceException instance. |
|
ServiceException(String key,
String message,
Throwable throwable)
Construct a new ServiceException instance. |
|
ServiceException(String message,
Throwable throwable)
Deprecated. use the String,String,Throwable version instead |
|
| Method Summary | |
String |
getKey()
Return the key that caused the exception. |
String |
getMessage()
Override super's message to add role if applicable. |
String |
getRole()
Deprecated. Use getKey() instead |
| 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(String message,
Throwable throwable)
ServiceException instance.
message - the exception messagethrowable - the throwable
public ServiceException(String key,
String message,
Throwable throwable)
ServiceException instance.
key - the lookup keymessage - the exception messagethrowable - the throwablepublic ServiceException(String message)
ServiceException instance.
message - the exception message
public ServiceException(String key,
String message)
ServiceException instance.
key - the lookup keymessage - the exception message| Method Detail |
public String getKey()
public String getRole()
public String getMessage()
getMessage in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||