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

@Exported public class TaggingException extends Exception
See Also:
  • Field Details

  • Constructor Details

    • TaggingException

      protected TaggingException()
    • TaggingException

      public TaggingException(String exCode)
      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

      public TaggingException(String exCode, Object... args)
      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

      public TaggingException(String exCode, Throwable t)
      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

      public TaggingException(String exCode, Throwable t, Object... args)
      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
      args - argument(s) for the formatting of the message associated with this exception
  • Method Details

    • getLocalizedMessage

      public String getLocalizedMessage()
      Returns a message in the default locale format. The default locale is the locale where the server is placed.
      Overrides:
      getLocalizedMessage in class Throwable
      Returns:
      String
    • getLocalizedMessage

      public String getLocalizedMessage(Locale l)
      Returns a message in the format of the locale passed as an argument.
      Parameters:
      l - Locale
      Returns:
      String
    • getErrorCode

      public String getErrorCode()
      Returns the error code associated with this exception
      Returns:
      String
    • getParams

      public String[] getParams()
      Returns the arguments for the format messaging
      Returns:
      Object[] an array of objects
    • getResourceBundleName

      protected String 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

      protected String getMessagePrivate(Locale loc)
      Returns a exception message in the locale specific format.
      Parameters:
      loc - Locale
      Returns:
      String
    • getResourceBundle

      protected final ResourceBundle getResourceBundle(Locale loc) throws MissingResourceException
      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