|
||||||||||
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 java.io.IOException com.ibm.portal.resolver.exceptions.LocalizedIOException
public class LocalizedIOException
Helper exception to wrap localization information into a SAXException
Field Summary | |
---|---|
protected static int |
SC_DEFAULT
default status code |
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 | |
---|---|
LocalizedIOException()
|
|
LocalizedIOException(int aStatus,
java.lang.Throwable aCause)
Constructor used if no metainformation about the actual exception cause is known. |
|
LocalizedIOException(Localized aDelegate,
int aStatus)
|
|
LocalizedIOException(Localized aDelegate,
int aStatus,
java.lang.Throwable aCause)
|
|
LocalizedIOException(LocalizedStatus aDelegate,
java.lang.Throwable aCause)
Initializes the exception based on a localize status and a root cause |
|
LocalizedIOException(Localized aDelegate,
java.lang.Throwable aCause)
|
|
LocalizedIOException(java.lang.Throwable aCause)
Constructor used if no metainformation about the actual exception cause is known. |
Method Summary | |
---|---|
java.lang.Throwable |
getCause()
|
protected LocalizedStatus |
getDelegate()
Returns the localized status to delegate the translation to |
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. |
java.lang.String |
getLocalizedMessage()
|
java.lang.String |
getMessage()
|
int |
getStatus()
Returns a status code that can be evaluated by the handler of the exception implementing LocalizedStatus . |
java.lang.String |
getTitle(java.util.Locale aLocale)
Returns the title of this object in the given locale. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, 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 static final int SC_DEFAULT
Constructor Detail |
---|
public LocalizedIOException()
public LocalizedIOException(int aStatus, java.lang.Throwable aCause)
aStatus
- status code of the exceptionaCause
- the actual root causepublic LocalizedIOException(Localized aDelegate, int aStatus)
public LocalizedIOException(Localized aDelegate, int aStatus, java.lang.Throwable aCause)
public LocalizedIOException(Localized aDelegate, java.lang.Throwable aCause)
public LocalizedIOException(LocalizedStatus aDelegate, java.lang.Throwable aCause)
aDelegate
- the localization delegate, not null
aCause
- the exception cause, may be null
public LocalizedIOException(java.lang.Throwable aCause)
aCause
- the root exceptionMethod Detail |
---|
public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
protected LocalizedStatus getDelegate()
null
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()
LocalizedStatus
LocalizedStatus
. It is up
to the handler of the exception how to interpret the status code.
getStatus
in interface LocalizedStatus
public java.lang.String getTitle(java.util.Locale aLocale)
Localized
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |