Package org.duracloud.common.error
Class DuraCloudRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.duracloud.common.error.DuraCloudRuntimeException
- All Implemented Interfaces:
Serializable,MessageFormattable
- Direct Known Subclasses:
InvalidUsernameException,RetryFlaggableException
This class is the top-level Runtime DuraCloud exception from which other
internal exceptions extend.
- Author:
- Andrew Woods Date: Nov 20, 2009
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDuraCloudRuntimeException(String message) DuraCloudRuntimeException(String message, String key) DuraCloudRuntimeException(String message, Throwable throwable) DuraCloudRuntimeException(String message, Throwable throwable, String key) DuraCloudRuntimeException(Throwable throwable) DuraCloudRuntimeException(Throwable throwable, String key) -
Method Summary
Modifier and TypeMethodDescriptionString[]getArgs()This method returns the args that act as variables in the message.This method returns the message which includes the arg elements.getKey()This method returns the message key used as an index in the ResourceBundle.voidThis method sets the arg variables that are placed in the message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DuraCloudRuntimeException
public DuraCloudRuntimeException() -
DuraCloudRuntimeException
-
DuraCloudRuntimeException
-
DuraCloudRuntimeException
-
DuraCloudRuntimeException
-
DuraCloudRuntimeException
-
DuraCloudRuntimeException
-
-
Method Details
-
getKey
Description copied from interface:MessageFormattableThis method returns the message key used as an index in the ResourceBundle.- Specified by:
getKeyin interfaceMessageFormattable- Returns:
- key
-
getArgs
Description copied from interface:MessageFormattableThis method returns the args that act as variables in the message.- Specified by:
getArgsin interfaceMessageFormattable- Returns:
- list of message elements
-
setArgs
Description copied from interface:MessageFormattableThis method sets the arg variables that are placed in the message.- Specified by:
setArgsin interfaceMessageFormattable- Parameters:
args- list of elements to be placed in message
-
getFormattedMessage
Description copied from interface:MessageFormattableThis method returns the message which includes the arg elements.- Specified by:
getFormattedMessagein interfaceMessageFormattable- Returns:
- formatted message
-