public class DuraCloudRuntimeException extends RuntimeException implements MessageFormattable
Constructor and Description |
---|
DuraCloudRuntimeException() |
DuraCloudRuntimeException(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) |
Modifier and Type | Method and Description |
---|---|
String[] |
getArgs()
This method returns the args that act as variables in the message.
|
String |
getFormattedMessage()
This method returns the message which includes the arg elements.
|
String |
getKey()
This method returns the message key used as an index in the ResourceBundle.
|
void |
setArgs(String... args)
This method sets the arg variables that are placed in the message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DuraCloudRuntimeException()
public DuraCloudRuntimeException(String message)
public DuraCloudRuntimeException(String message, Throwable throwable, String key)
public DuraCloudRuntimeException(Throwable throwable)
public String getKey()
MessageFormattable
getKey
in interface MessageFormattable
public String[] getArgs()
MessageFormattable
getArgs
in interface MessageFormattable
public void setArgs(String... args)
MessageFormattable
setArgs
in interface MessageFormattable
args
- list of elements to be placed in messagepublic String getFormattedMessage()
MessageFormattable
getFormattedMessage
in interface MessageFormattable
Copyright © 2009–2014 DuraSpace. All rights reserved.