Oracle Collaboration Suite Discussions Java API Reference
10g (10.1.1)

Part No. B16232-01


oracle.discussions.sdk
Class TdMessagingException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.mail.MessagingException
              extended byoracle.discussions.sdk.TdMessagingException

All Implemented Interfaces:
java.io.Serializable

public class TdMessagingException
extends javax.mail.MessagingException

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);
   }
 
Since:
OCS 10.1.1
See Also:
TdException.java, in javax.mail package., Serialized Form

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.

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

TdMessagingException

public TdMessagingException(java.lang.Throwable t)
Takes in a throwable object and constructs a Oracle Discussions specific messaging exception object.
Parameters:
t - the throwable object used in constructing the exception

Method Detail

getNextException

public java.lang.Exception getNextException()
Sets the next exception in the exception list. If there are more than one exception thrown by a method, they are returned in the form of a list. The immediate next exception in the list is returned by this method.
Returns:
Exception

setNextException

public boolean setNextException()
Sets the next exception in the exception list. If there are more than one exception thrown by a method, they are stored in the form of a list. The immediate next exception in the list is set by this method.
Returns:
boolean

getMessage

public java.lang.String getMessage()
Returns the exception message.

This method returns the message in english and is not formatted as per the locale.

Returns:
String

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Returns the message formatted as per the default locale.
Returns:
String

printStackTrace

public void printStackTrace()
Prints the exception stack trace.

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Prints the exception stack trace to console

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Prints the exception stack trace to a file.

toString

public java.lang.String toString()
Returns the exception object in the form of a string. Used in printing the exception to a log file
Returns:
string

Copyright © 2005, Oracle. All rights reserved.