Class DuraCloudCheckedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.duracloud.common.error.DuraCloudCheckedException
All Implemented Interfaces:
Serializable, MessageFormattable
Direct Known Subclasses:
ManifestVerifyException, NoUserLoggedInException

public class DuraCloudCheckedException extends Exception implements MessageFormattable
This class is the top-level Checked DuraCloud exception from which other internal exceptions extend.
Author:
Andrew Woods Date: Oct 24, 2009
See Also:
  • Constructor Details

    • DuraCloudCheckedException

      public DuraCloudCheckedException()
    • DuraCloudCheckedException

      public DuraCloudCheckedException(String message)
    • DuraCloudCheckedException

      public DuraCloudCheckedException(String message, String key)
    • DuraCloudCheckedException

      public DuraCloudCheckedException(String message, Throwable throwable)
    • DuraCloudCheckedException

      public DuraCloudCheckedException(String message, Throwable throwable, String key)
    • DuraCloudCheckedException

      public DuraCloudCheckedException(Throwable throwable)
    • DuraCloudCheckedException

      public DuraCloudCheckedException(Throwable throwable, String key)
  • Method Details

    • getKey

      public String getKey()
      Description copied from interface: MessageFormattable
      This method returns the message key used as an index in the ResourceBundle.
      Specified by:
      getKey in interface MessageFormattable
      Returns:
      key
    • getArgs

      public String[] getArgs()
      Description copied from interface: MessageFormattable
      This method returns the args that act as variables in the message.
      Specified by:
      getArgs in interface MessageFormattable
      Returns:
      list of message elements
    • setArgs

      public void setArgs(String... args)
      Description copied from interface: MessageFormattable
      This method sets the arg variables that are placed in the message.
      Specified by:
      setArgs in interface MessageFormattable
      Parameters:
      args - list of elements to be placed in message
    • getFormattedMessage

      public String getFormattedMessage()
      Description copied from interface: MessageFormattable
      This method returns the message which includes the arg elements.
      Specified by:
      getFormattedMessage in interface MessageFormattable
      Returns:
      formatted message