|
Oracle Collaboration Suite Discussions Java API Reference 10g (10.1.1) Part No. B16232-01 |
|||||||||
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
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); }
Constructor Summary | |
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. |
java.lang.Object[] |
getParams() Returns the arguments for the format messaging |
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, getCause, getMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TdException(java.lang.String exCode)
public TdException(java.lang.String exCode, java.lang.Object arg1)
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)
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)
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)
t
- throwable that cause this syndication exception to be raisedpublic TdException(java.lang.String exCode, java.lang.Throwable t, java.lang.Object arg1)
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)
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)
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)
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.
public void printStackTrace(java.io.PrintWriter pw)
Used in printing the stack trace to a file.
public java.lang.String getLocalizedMessage()
public java.lang.String getLocalizedMessage(java.util.Locale l)
public java.lang.String getErrorCode()
public java.lang.Object[] getParams()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |