Package oracle.webcenter.tagging.model
Class TaggingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
oracle.webcenter.tagging.model.TaggingException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TaggingConcurrentException
,TaggingServiceNotAvailableException
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected static Map<String,
ResourceBundle> protected String[]
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TaggingException
(String exCode) Constructor for this exception class.TaggingException
(String exCode, Object... args) Constructor for this exception class.TaggingException
(String exCode, Throwable t) Constructor for this exception class.TaggingException
(String exCode, Throwable t, Object... args) Constructor for this exception class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the error code associated with this exceptionReturns a message in the default locale format.Returns a message in the format of the locale passed as an argument.protected String
getMessagePrivate
(Locale loc) Returns a exception message in the locale specific format.String[]
Returns the arguments for the format messagingprotected final ResourceBundle
getResourceBundle
(Locale loc) Returns the resource bundle which is used in formatting the messages, given the locale.protected String
Returns the name of the ResourceBundle to be used by this subclass of the TaggingException.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
m_oaParams
-
m_exCode
-
m_hmRbs
-
-
Constructor Details
-
TaggingException
protected TaggingException() -
TaggingException
Constructor for this exception class.- Parameters:
exCode
- identifies the exception code associated with this exception. it will be used as a key into the exception resource bundle to get the localized execption message.
-
TaggingException
Constructor for this exception class.- Parameters:
exCode
- identifies the exception code associated with this exception. it will be used as a key into the exception resource bundle to get the localized execption message.args
- argument(s) for the formatting of the message associated with this exception
-
TaggingException
Constructor for this exception class.- Parameters:
exCode
- identifies the exception code associated with this exception. it will be used as a key into the exception resource bundle to get the localized execption message.t
- throwable that cause this syndication exception to be raised
-
TaggingException
Constructor for this exception class.- Parameters:
exCode
- identifies the exception code associated with this exception. it will be used as a key into the exception resource bundle to get the localized execption message.t
- throwable that cause this syndication exception to be raisedargs
- argument(s) for the formatting of the message associated with this exception
-
-
Method Details
-
getLocalizedMessage
Returns a message in the default locale format. The default locale is the locale where the server is placed.- Overrides:
getLocalizedMessage
in classThrowable
- Returns:
- String
-
getLocalizedMessage
Returns a message in the format of the locale passed as an argument.- Parameters:
l
- Locale- Returns:
- String
-
getErrorCode
Returns the error code associated with this exception- Returns:
- String
-
getParams
Returns the arguments for the format messaging- Returns:
- Object[] an array of objects
-
getResourceBundleName
Returns the name of the ResourceBundle to be used by this subclass of the TaggingException. e.g. "oracle.discussions.exmsgs.XXXMessages"- Returns:
- String
-
getMessagePrivate
Returns a exception message in the locale specific format.- Parameters:
loc
- Locale- Returns:
- String
-
getResourceBundle
Returns the resource bundle which is used in formatting the messages, given the locale.- Parameters:
loc
- Locale of the resource bundle sought- Returns:
- ResourceBundle object for that specified locale.
- Throws:
MissingResourceException
-