|
||||||||||
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 com.ibm.portal.resolver.exceptions.ResolutionException com.ibm.portal.resolver.exceptions.ResolutionProxyException
public class ResolutionProxyException
Wrapper around an arbitrary exception cause
Field Summary | |
---|---|
protected Localized |
loc
localized object to dispatch to |
protected int |
status
HTTP status coded associated with this exception |
Fields inherited from interface com.ibm.portal.resolver.exceptions.Constants |
---|
SC_BAD_REQUEST, SC_GONE, SC_INTERNAL_SERVER_ERROR, SC_NOT_FOUND, SC_REQUEST_TIMEOUT, SC_SERVICE_UNAVAILABLE, SC_UNAUTHORIZED |
Constructor Summary | |
---|---|
ResolutionProxyException(Localized aLoc,
java.lang.Exception ex)
|
|
ResolutionProxyException(Localized aLoc,
int aStatus,
java.lang.Exception ex)
|
Method Summary | |
---|---|
java.lang.String |
getDescription(java.util.Locale aLocale)
Returns the description of this object in the given locale. |
ListModel<java.util.Locale> |
getLocales()
Returns a list model containing the locales that are supported by this object. |
int |
getStatus()
Returns as a hint to the client the recommended HTTP status code. |
java.lang.String |
getTitle(java.util.Locale aLocale)
Returns the title of this object in the given locale. |
Methods inherited from class com.ibm.portal.resolver.exceptions.ResolutionException |
---|
findLocalized, findLocalizedStatus, getLocalized, getLocalized, getLocalizedMessage, getLocalizedStatus, getMessage, getTitle |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final Localized loc
protected final int status
Constructor Detail |
---|
public ResolutionProxyException(Localized aLoc, int aStatus, java.lang.Exception ex)
public ResolutionProxyException(Localized aLoc, java.lang.Exception ex)
Method Detail |
---|
public java.lang.String getDescription(java.util.Locale aLocale)
Localized
getDescription
in interface Localized
getDescription
in class ResolutionException
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 ListModel<java.util.Locale> getLocales()
Localized
getLocales
in interface Localized
getLocales
in class ResolutionException
ListModel
if no locales are supported.public java.lang.String getTitle(java.util.Locale aLocale)
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 int getStatus()
ResolutionException
getStatus
in interface LocalizedStatus
getStatus
in class ResolutionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |