|
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 |
oracle.discussions.sdk.TdMessagingException
Wrapper a TdException into a MessagingException to allow to overwrite javax.mail.* APIs.
Extends from javax.mail.MessagingException which is a base class for all the exception thrown by the java mail messaging operations.
Sample code snipper illustrating the usage of TdMessagingException.
try { //Do some operations..... } catch (TdException tdEx) { throw new TdMessagingException(tdEx); }
TdException
, in javax.mail package.
Constructor Summary | |
TdMessagingException(java.lang.Throwable t) Takes in a throwable object and constructs a Oracle Discussions specific messaging exception object. |
Method Summary | |
java.lang.String |
getLocalizedMessage() Returns the message formatted as per the default locale. |
java.lang.String |
getMessage() Returns the exception message. |
java.lang.Exception |
getNextException() Sets the next exception in the exception list. |
void |
printStackTrace() Prints the exception stack trace. |
void |
printStackTrace(java.io.PrintStream ps) Prints the exception stack trace to console |
void |
printStackTrace(java.io.PrintWriter pw) Prints the exception stack trace to a file. |
boolean |
setNextException() Sets the next exception in the exception list. |
java.lang.String |
toString() Returns the exception object in the form of a string. |
Constructor Detail |
public TdMessagingException(java.lang.Throwable t)
t
- the throwable object used in constructing the exceptionMethod Detail |
public java.lang.Exception getNextException()
public boolean setNextException()
public java.lang.String getMessage()
This method returns the message in english and is not formatted as per the locale.
public java.lang.String getLocalizedMessage()
public void printStackTrace()
public void printStackTrace(java.io.PrintStream ps)
ps
- public void printStackTrace(java.io.PrintWriter pw)
pw
- public java.lang.String toString()
|
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 |