Oracle Discussions Java API Reference
10g Release 1 (10.1.2)

B25496-01

oracle.discussions.sdk
Class TdUnsupportedOperationException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--java.lang.UnsupportedOperationException
                          |
                          +--oracle.discussions.sdk.TdUnsupportedOperationException

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, UnsupportedOperationException, Serialized Form

Field Summary
protected  java.lang.String _exCode
           
protected static java.util.Hashtable _htRb
           
protected  java.lang.Object[] _oaParams
           

 

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.
protected  java.lang.String getMessagePrivate(java.util.Locale loc)
          Formats the message into a locale specific format.
protected  java.util.ResourceBundle getResourceBundle(java.util.Locale loc)
          Retrieves the resource bundle, given a locale.
protected  java.lang.String getResourceBundleName()
          Returns the name of the ResourceBundle to be used by this subclass of the TdException.

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, printStackTrace, printStackTrace, printStackTrace, toString

 

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

 

Field Detail

_htRb

protected static java.util.Hashtable _htRb

_exCode

protected java.lang.String _exCode

_oaParams

protected java.lang.Object[] _oaParams

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.

Overrides:
getLocalizedMessage in class java.lang.Throwable
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.

Parameters:
l - 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.

Overrides:
getMessage in class java.lang.Throwable
Returns:
String

getErrorCode

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

getResourceBundleName

protected java.lang.String getResourceBundleName()
Returns the name of the ResourceBundle to be used by this subclass of the TdException. e.g. "oracle.discussions.exmsgs.XXXMessages"
Returns:
String

getMessagePrivate

protected java.lang.String getMessagePrivate(java.util.Locale loc)
Formats the message into a locale specific format.

Will take in a locale and formats the message as per the locale.

e.g. "oracle.discussions.exmsgs.XXXMessages"
Parameters:
Locale -  
Returns:
String

getResourceBundle

protected final java.util.ResourceBundle getResourceBundle(java.util.Locale loc)
                                                    throws java.util.MissingResourceException
Retrieves the resource bundle, given a locale.

The method takes in a locale and returns a resource bundle specific to that locale.

Parameters:
Locale -  
Returns:
ResourceBundle

Oracle Discussions Java API Reference
10g Release 1 (10.1.2)

B25496-01

Copyright © 2002, 2005, Oracle. All rights reserved.