|
Oracle Discussions Java API Reference 10g Release 1 (10.1.2) B25496-01 |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--oracle.discussions.sdk.TdException
Indicates a oracle discussions specific generic exception.
Extends java.lang.Exception. The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
Sample code snippet illustrating the usage of TdException.
public void grantBoardModerator(TdUser tdUser) throws TdException { throw new TdException(TdExceptionConstants.TD_NOT_AUTHORIZED); }
Field Summary | |
protected java.lang.String |
_exCode |
protected static java.util.Hashtable |
_htRb |
protected java.lang.Object[] |
_oaParams |
protected java.lang.Throwable |
_tInternal |
Constructor Summary | |
protected |
TdException() |
|
TdException(java.lang.String exCode) Constructor for this exception class. |
|
TdException(java.lang.String exCode, java.lang.Object arg1) Constructor for this exception class. |
|
TdException(java.lang.String exCode, java.lang.Object arg1, java.lang.Object arg2) Constructor for this exception class. |
|
TdException(java.lang.String exCode, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3) Constructor for this exception class. |
|
TdException(java.lang.String exCode, java.lang.Throwable t) Constructor for this exception class. |
|
TdException(java.lang.String exCode, java.lang.Throwable t, java.lang.Object arg1) Constructor for this exception class. |
|
TdException(java.lang.String exCode, java.lang.Throwable t, java.lang.Object[] oa) Constructor for this exception class. |
|
TdException(java.lang.String exCode, java.lang.Throwable t, java.lang.Object arg1, java.lang.Object arg2) Constructor for this exception class. |
|
TdException(java.lang.String exCode, java.lang.Throwable t, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3) Constructor for this exception class. |
Method Summary | |
java.lang.String |
getErrorCode() Returns a message in the US Locale format. |
java.lang.Throwable |
getInternalThrowable() Returns the internal throwable associated with this exception, null non is defined. |
java.lang.String |
getLocalizedMessage() Returns a message in the default locale format. |
java.lang.String |
getLocalizedMessage(java.util.Locale l) Returns a message in the format of the locale passed as an argument. |
protected java.lang.String |
getMessagePrivate(java.util.Locale loc) Returns a exception message in the locale specific format. |
java.lang.Object[] |
getParams() Returns the arguments for the format messaging |
protected java.util.ResourceBundle |
getResourceBundle(java.util.Locale loc) Returns the resource bundle which is used in formatting the messages, given the locale. |
protected java.lang.String |
getResourceBundleName() Returns the name of the ResourceBundle to be used by this subclass of the TdException. |
void |
printStackTrace() Prints the stack trace to the system.err output. |
void |
printStackTrace(java.io.PrintStream s) Prints the stack trace to a print stream passed as an argument. |
void |
printStackTrace(java.io.PrintWriter pw) Prints the stack trace to a print writer object passed as an argument. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getMessage, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String _exCode
protected java.lang.Object[] _oaParams
protected java.lang.Throwable _tInternal
protected static java.util.Hashtable _htRb
Constructor Detail |
protected TdException()
public TdException(java.lang.String exCode)
exCode
- identifies the exception code associated with this exception. it will be used as a key into the exception resource bundle to get the localized execptin message.public TdException(java.lang.String exCode, java.lang.Object arg1)
exCode
- identifies the exception code associated with this exception. it will be used as a key into the exception resource bundle to get the localized execptin message.arg1
- argument for the formatting of the message associated with this exceptionpublic TdException(java.lang.String exCode, java.lang.Object arg1, java.lang.Object arg2)
exCode
- identifies the exception code associated with this exception. it will be used as a key into the exception resource bundle to get the localized execptin message.arg1
- argument for the formatting of the message associated with this exceptionarg2
- argument for the formatting of the message associated with this exceptionpublic TdException(java.lang.String exCode, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
exCode
- identifies the exception code associated with this exception. it will be used as a key into the exception resource bundle to get the localized execptin message.arg1
- argument for the formatting of the message associated with this exceptionarg2
- argument for the formatting of the message associated with this exceptionarg3
- argument for the formatting of the message associated with this exceptionpublic TdException(java.lang.String exCode, java.lang.Throwable t)
exCode
- identifies the exception code associated with this exception. it will be used as a key into the exception resource bundle to get the localized execptin message.t
- throwable that cause this syndication exception to be raisedpublic TdException(java.lang.String exCode, java.lang.Throwable t, java.lang.Object arg1)
exCode
- identifies the exception code associated with this exception. it will be used as a key into the exception resource bundle to get the localized execptin message.t
- throwable that cause this syndication exception to be raisedarg1
- argument for the formatting of the message associated with this exceptionpublic TdException(java.lang.String exCode, java.lang.Throwable t, java.lang.Object arg1, java.lang.Object arg2)
exCode
- identifies the exception code associated with this exception. it will be used as a key into the exception resource bundle to get the localized execptin message.t
- throwable that cause this syndication exception to be raisedarg1
- argument for the formatting of the message associated with this exceptionarg2
- argument for the formatting of the message associated with this exceptionpublic TdException(java.lang.String exCode, java.lang.Throwable t, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
exCode
- identifies the exception code associated with this exception. it will be used as a key into the exception resource bundle to get the localized execptin message.t
- throwable that cause this syndication exception to be raisedarg1
- argument for the formatting of the message associated with this exceptionarg2
- argument for the formatting of the message associated with this exceptionarg3
- argument for the formatting of the message associated with this exceptionpublic TdException(java.lang.String exCode, java.lang.Throwable t, java.lang.Object[] oa)
exCode
- identifies the exception code associated with this exception. it will be used as a key into the exception resource bundle to get the localized execptin message.t
- throwable that cause this syndication exception to be raisedoa
- array of arguments for the formatting of the message associated with this exceptionMethod Detail |
public java.lang.Throwable getInternalThrowable()
public void printStackTrace()
public void printStackTrace(java.io.PrintStream s)
Used in printing the stacktrace to the console.
s
- printstreampublic void printStackTrace(java.io.PrintWriter pw)
Used in printing the stack trace to a file.
pw
- printwriterpublic java.lang.String getLocalizedMessage()
public java.lang.String getLocalizedMessage(java.util.Locale l)
l
- Localepublic java.lang.String getErrorCode()
public java.lang.Object[] getParams()
protected java.lang.String getResourceBundleName()
protected java.lang.String getMessagePrivate(java.util.Locale loc)
Locale
- protected final java.util.ResourceBundle getResourceBundle(java.util.Locale loc) throws java.util.MissingResourceException
Locale
-
|
Oracle Discussions Java API Reference 10g Release 1 (10.1.2) B25496-01 |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |