com.ibm.portal.resolver.exceptions
Class ResolutionProxyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibm.portal.resolver.exceptions.ResolutionException
com.ibm.portal.resolver.exceptions.ResolutionProxyException
- All Implemented Interfaces:
- Localized, LocalizedStatus, Constants, java.io.Serializable
-
public class ResolutionProxyException
- extends ResolutionException
Wrapper around an arbitrary exception cause
- Since:
- 7.0
- See Also:
- Serialized Form
Field Summary
|
protected Localized |
loc
localized object to dispatch to |
protected int |
status
HTTP status coded associated with this exception |
Method Summary
|
java.lang.String |
getDescription(java.util.Locale aLocale)
Return the description of this object in the given locale. |
ListModel<java.util.Locale> |
getLocales()
Return a list model containing the locales that are supported by this
object. |
int |
getStatus()
Return as a hint to the client the recommended HTTP status code. |
java.lang.String |
getTitle(java.util.Locale aLocale)
Return the title of this object in the given locale. |
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 |
loc
protected final Localized loc
- localized object to dispatch to
status
protected final int status
- HTTP status coded associated with this exception
ResolutionProxyException
public ResolutionProxyException(Localized aLoc,
int aStatus,
java.lang.Exception ex)
ResolutionProxyException
public ResolutionProxyException(Localized aLoc,
java.lang.Exception ex)
getDescription
public java.lang.String getDescription(java.util.Locale aLocale)
- Description copied from interface: Localized
- Returns the description of this object in the given locale.
- Specified by:
- getDescription in interface Localized
- Overrides:
- getDescription in class ResolutionException
- Parameters:
- aLocale - the locale for which to retrieve the description, must not
be null.
- Returns:
- the description of this node in the given locale. If a description is not
available in the given locale, this method will return null.
It is up to the invoker of the method to implement an appropriate
fallback mechanism
getLocales
public ListModel<java.util.Locale> getLocales()
- Description copied from interface: Localized
- Returns a list model containing the locales that are supported by this
object. The presence of a locale in this list does not mean that a title
and description is available, but rather that either one or both
are available in that locale.
- Specified by:
- getLocales in interface Localized
- Overrides:
- getLocales in class ResolutionException
- Returns:
- a list of locales defined for this object, returns an empty
ListModel if no locales are supported.
getTitle
public java.lang.String getTitle(java.util.Locale aLocale)
- Description copied from interface: Localized
- Returns the title of this object in the given locale.
- Parameters:
- aLocale - the locale for which to retrieve the title, must not
be null.
- Returns:
- the title of this node in the given locale. If a title is not
available in the given locale, this method will return null.
It is up to the invoker of the method to implement an appropriate
fallback mechanism.
getStatus
public int getStatus()
- Description copied from class: ResolutionException
- Returns as a hint to the client the recommended HTTP status code.
Subclasses of this exception are advised to override this method to
provide for more refined error codes.
- Specified by:
- getStatus in interface LocalizedStatus
- Overrides:
- getStatus in class ResolutionException
- Returns:
- HTTP status code