|
||||||||||
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 javax.portlet.PortletException com.ibm.portal.portlet.service.PortletServiceUnavailableException
public abstract class PortletServiceUnavailableException
Exception that indicates that a requested portlet service is not available. Possible reasons may be that the service was not configured or that the service failed during intialization.
Note that a service configuration problem may also be indicated by a failing JNDI lookup for the portlet service home.
All exceptions of this type indicate permanent unavailability, unless a subclass specifies explicitly that the unavailability is only temporary. If a portlet service is permanently unavailable, any further requests to retrieve the same service interface using the same JNDI name for the service home will also fail.
This exception derives from PortletException
so that portlets are not
required to implement special error handling if they have no way of operating without the
requested service. In this case, the exception can simply be propagated to the portal, so
that the portlet becomes unavailable for the request.
This exception is an abstract class. Services that need to indicate errors in their initialization process must throw service-specific subclasses of this exception.
Constructor Summary | |
---|---|
protected |
PortletServiceUnavailableException()
|
protected |
PortletServiceUnavailableException(java.lang.Throwable cause)
|
Method Summary | |
---|---|
abstract java.lang.String |
getDescription(java.util.Locale aLocale)
Return a language-specific detailed explanation of this exception. |
abstract ListModel |
getLocales()
Return the languages for which language-specific exception messages and explanations are provided. |
abstract java.lang.String |
getTitle(java.util.Locale aLocale)
Return a language-specific exception message for this exception. |
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 |
---|
protected PortletServiceUnavailableException()
protected PortletServiceUnavailableException(java.lang.Throwable cause)
Method Detail |
---|
public abstract java.lang.String getTitle(java.util.Locale aLocale)
getTitle
in interface Localized
aLocale
- the locale for which to retrieve the title, must not
be null
.
null
.
It is up to the invoker of the method to implement an appropriate
fallback mechanism.public abstract java.lang.String getDescription(java.util.Locale aLocale)
getDescription
in interface Localized
aLocale
- the locale for which to retrieve the description, must not
be null
.
null
.
It is up to the invoker of the method to implement an appropriate
fallback mechanismpublic abstract ListModel getLocales()
getLocales
in interface Localized
ListModel
if no locales are supported.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |