|
|||||||||||
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.jetspeed.portlet.PortletException | +--org.apache.jetspeed.portlet.UnavailableException
Use the UnavailableException
when the instantiation
of a portlet fails.
Portlet.init(PortletConfig)
,
Serialized FormConstructor Summary | |
UnavailableException(java.lang.String text)
Constructs a new exception with the given text. |
|
UnavailableException(java.lang.String text,
int seconds)
Constructs a new exception with the given text and excepted receovery time. |
Method Summary | |
int |
getUnavailableSeconds()
Returns the number of seconds that this portlet is expected to be temporarily unavailable. |
Methods inherited from class org.apache.jetspeed.portlet.PortletException |
getRootCause |
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 |
Constructor Detail |
public UnavailableException(java.lang.String text)
text
- the exception textpublic UnavailableException(java.lang.String text, int seconds)
text
- the exception textMethod Detail |
public int getUnavailableSeconds()
If this method returns a negative number, the portlet is permanently unavailable or cannot provide an estimate of how long it will be unavailable. No effort is made to correct for the time elapsed since the exception was first reported.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |