|
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 |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--java.lang.UnsupportedOperationException | +--oracle.discussions.sdk.TdUnsupportedOperationException
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"); }
TdException
, UnsupportedOperationException
, Serialized FormField 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 |
protected static java.util.Hashtable _htRb
protected java.lang.String _exCode
protected java.lang.Object[] _oaParams
Constructor Detail |
public TdUnsupportedOperationException(java.lang.String opName)
Constructor which takes in a string, causing the exception and constructs the exception object.
opName
- Method Detail |
public java.lang.String getLocalizedMessage()
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.
public java.lang.String getLocalizedMessage(java.util.Locale l)
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.
l
- Localepublic java.lang.String getMessage()
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.
public java.lang.String getErrorCode()
protected java.lang.String getResourceBundleName()
protected java.lang.String getMessagePrivate(java.util.Locale loc)
Will take in a locale and formats the message as per the locale.
e.g. "oracle.discussions.exmsgs.XXXMessages"Locale
- protected final java.util.ResourceBundle getResourceBundle(java.util.Locale loc) throws java.util.MissingResourceException
The method takes in a locale and returns a resource bundle specific to that locale.
Locale
-
|
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 |