public class ProwideException
extends java.lang.RuntimeException
| Constructor and Description |
|---|
ProwideException() |
ProwideException(java.lang.String message) |
ProwideException(java.lang.String message,
java.lang.Throwable cause) |
ProwideException(java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addVariable(java.lang.String key,
java.lang.String value)
Initializes the variables Map if necessary and puts the parameter tuple.
|
static java.util.ResourceBundle |
getBundle() |
static java.util.ResourceBundle |
getBundle(java.util.Locale locale) |
java.lang.String |
getMessage()
Gets a descriptive message suitable for presenting to the final user, using the default locale.
|
java.lang.String |
getMessage(java.util.Locale locale)
Gets a descriptive, localized error message suitable for presenting to the final user.
|
protected java.lang.String |
getMessage(java.util.Locale locale,
java.util.Map<java.lang.String,java.lang.String> variables)
Gets a descriptive, localized error message suitable for presenting to the final user.
|
protected java.lang.String |
getVariable(java.lang.String key)
Returns a variable value, if set, given its key
|
public ProwideException()
public ProwideException(java.lang.String message,
java.lang.Throwable cause)
public ProwideException(java.lang.String message)
public ProwideException(java.lang.Throwable cause)
public static java.util.ResourceBundle getBundle()
public static java.util.ResourceBundle getBundle(java.util.Locale locale)
public java.lang.String getMessage(java.util.Locale locale)
locale - optional localepublic java.lang.String getMessage()
getMessage in class java.lang.Throwableprotected java.lang.String getMessage(java.util.Locale locale,
java.util.Map<java.lang.String,java.lang.String> variables)
locale - optional localevariables - optional map of variables to replace in the message read from resource bundleprotected void addVariable(java.lang.String key,
java.lang.String value)
key - variable keyvalue - variable valueprotected java.lang.String getVariable(java.lang.String key)
key - variable key name