|
||||||||||
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
public abstract class ResolutionException
Baseclass for the exceptions that can occur during the resolution process
This interface is designed to be implemented by clients. |
Field Summary |
---|
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 | |
---|---|
protected |
ResolutionException()
Default exception without a cause |
protected |
ResolutionException(java.lang.Throwable th)
Exception that contains a root cause |
Method Summary | |
---|---|
static Localized |
findLocalized(java.lang.Throwable ex)
Finds an implementation of the Localized interface across the
chain of exception causes |
static LocalizedStatus |
findLocalizedStatus(int defaultStatus,
java.lang.Throwable ex)
Find the localized status interface across the causes |
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. |
static Localized |
getLocalized()
Returns the empty singleton in case no base is available |
static Localized |
getLocalized(java.lang.Throwable ex)
Converts any exception into a localized object |
java.lang.String |
getLocalizedMessage()
|
static LocalizedStatus |
getLocalizedStatus(Localized ex,
int aStatus)
|
java.lang.String |
getMessage()
|
int |
getStatus()
Returns as a hint to the client the recommended HTTP status code. |
protected java.lang.String |
getTitle(com.ibm.wps.util.MessageCode code,
java.lang.Object[] obj,
java.util.Locale loc)
|
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 |
Methods inherited from interface com.ibm.portal.Localized |
---|
getTitle |
Constructor Detail |
---|
protected ResolutionException()
protected ResolutionException(java.lang.Throwable th)
th
- root cause of the exceptionMethod Detail |
---|
public static Localized findLocalized(java.lang.Throwable ex)
Localized
interface across the
chain of exception causes
ex
- the exception
public static LocalizedStatus findLocalizedStatus(int defaultStatus, java.lang.Throwable ex)
defaultStatus
- ex
-
public static Localized getLocalized()
public static Localized getLocalized(java.lang.Throwable ex)
ex
- original exception
public static LocalizedStatus getLocalizedStatus(Localized ex, int aStatus)
public java.lang.String getDescription(java.util.Locale aLocale)
Localized
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 ListModel<java.util.Locale> getLocales()
Localized
getLocales
in interface Localized
ListModel
if no locales are supported.public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class java.lang.Throwable
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public int getStatus()
getStatus
in interface LocalizedStatus
protected java.lang.String getTitle(com.ibm.wps.util.MessageCode code, java.lang.Object[] obj, java.util.Locale loc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |