|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.ibm.workplace.wcm.api.exceptions.WCMException
public abstract class WCMException
The base Web Content Manager API Exception.
| Field Summary | |
|---|---|
static int |
ERR_APTRIX
default error code |
| Constructor Summary | |
|---|---|
protected |
WCMException()
Construtor to only be used by sub classes |
|
WCMException(Localized localizedMessage)
Constructor that requires a localized message |
|
WCMException(java.lang.String detail)
Constructor that requires detail |
|
WCMException(java.lang.String detail,
java.lang.Throwable cause)
Constructor that requires detail plus a cause exception |
protected |
WCMException(java.lang.Throwable cause)
Constructor to only be used by sub classes |
| Method Summary | |
|---|---|
java.lang.Throwable |
getCause()
Retrieves the cause exception for this exception |
java.lang.String |
getDescription(java.util.Locale paramLocale)
Returns the localized message for this exception. |
int |
getErrorCode()
The error code for this exception. |
ListModel<java.util.Locale> |
getLocales()
Locales suppported by the Localized message. |
java.lang.String |
getMessage()
Retrieves the message that accompanies this exception. |
java.lang.String |
getMessage(java.util.Locale locale)
Returns a localized message if one has been set on this exception. |
java.lang.String |
getTitle(java.util.Locale paramLocale)
Returns the localized message for this exception. |
void |
printStackTrace()
Overridden to include cause |
void |
printStackTrace(java.io.PrintStream s)
Overridden to include cause |
void |
printStackTrace(java.io.PrintWriter s)
Overridden to include cause |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ERR_APTRIX
| Constructor Detail |
|---|
protected WCMException()
protected WCMException(java.lang.Throwable cause)
cause - the exception that caused this exceptionpublic WCMException(java.lang.String detail)
detail - a message describing extra information about the exception
public WCMException(java.lang.String detail,
java.lang.Throwable cause)
detail - a message description extra information about the exceptioncause - the exception that caused this exceptionpublic WCMException(Localized localizedMessage)
localizedMessage - a localized message description extra information about the exception| Method Detail |
|---|
public ListModel<java.util.Locale> getLocales()
getLocales in interface Localizedpublic java.lang.String getMessage(java.util.Locale locale)
locale - the desired Locale for the message
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getTitle(java.util.Locale paramLocale)
getTitle in interface LocalizedparamLocale - the desired Locale for the message
public java.lang.String getDescription(java.util.Locale paramLocale)
getDescription in interface LocalizedparamLocale - the desired Locale for the message
public java.lang.Throwable getCause()
getCause in class java.lang.Throwablepublic int getErrorCode()
Note:This implementation is the default error code for the AptrixException. Subclasses may override this for a more appropriate error number.
public void printStackTrace()
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream s)
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintWriter s)
printStackTrace in class java.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||