|
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
javax.mail.MessagingException
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.java
, in javax.mail package.
, Serialized FormConstructor 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. |
Methods inherited from class javax.mail.MessagingException |
setNextException |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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)
public void printStackTrace(java.io.PrintWriter pw)
public java.lang.String toString()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |