public class DuraCloudExceptionCore extends Object implements MessageFormattable, Serializable
Constructor and Description |
---|
DuraCloudExceptionCore() |
DuraCloudExceptionCore(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.
|
public DuraCloudExceptionCore()
public DuraCloudExceptionCore(String key)
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.