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

Part No. B16232-01


oracle.discussions.sdk
Class TdUnsupportedOperationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.UnsupportedOperationException
                  extended byoracle.discussions.sdk.TdUnsupportedOperationException

All Implemented Interfaces:
java.io.Serializable

public class TdUnsupportedOperationException
extends java.lang.UnsupportedOperationException

Runtime exception raised for JavaMail operations not supported by oracle discussions implementation.

Extends from the java.lang.UnsupportedOperationException.

Sample code snippet illustrating the usage of TdUnsupportedOperationException.

 public void   close(boolean expunge)
   throws javax.mail.MessagingException
 {
   throw new TdUnsupportedOperationException("close");
 }
Since:
OCS 10.1.1
See Also:
TdException.java, UnsupportedOperatioException.java, Serialized Form

Constructor Summary
TdUnsupportedOperationException(java.lang.String opName)
Runtime exception raised for JavaMail operations not supported by oracle discussions implementation.

Method Summary
java.lang.String getErrorCode()
Returns the error code associated with this exception
java.lang.String getLocalizedMessage()
Returns the Exception message in localized format.
java.lang.String getLocalizedMessage(java.util.Locale l)
Returns the Exception message in localized format.
java.lang.String getMessage()
Returns the Exception message in localized format.

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

TdUnsupportedOperationException

public TdUnsupportedOperationException(java.lang.String opName)
Runtime exception raised for JavaMail operations not supported by oracle discussions implementation.

Constructor which takes in a string, causing the exception and constructs the exception object.

Parameters:
opName -

Method Detail

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Returns the Exception message in localized format.

The localized message method will read the exception message from the resource bundle, which returns localized messages. The resource bundle will take in the default locale of the server.

Returns:
String

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.util.Locale l)
Returns the Exception message in localized format.

The localized message method will read the exception message from the resource bundle, which returns localized messages. The resource bundle will take in the locale passed and return the message formatted to that locale.

Returns:
String

getMessage

public java.lang.String getMessage()
Returns the Exception message in localized format.

The localized message method will read the exception message from the resource bundle, which returns localized messages. The resource bundle will format the message according to US Locale.

Returns:
String

getErrorCode

public java.lang.String getErrorCode()
Returns the error code associated with this exception
Returns:
String

Copyright © 2005, Oracle. All rights reserved.