public abstract class AbstractParameterizedException extends RuntimeException
getExceptionMessage(). Any
instances of the string PARAMETER_PLACEHOLDER
will be replaced by the location provided in the constructor. | Modifier and Type | Field and Description |
|---|---|
protected static String |
PARAMETER_PLACEHOLDER |
| Constructor and Description |
|---|
AbstractParameterizedException(String parameter)
Constructor.
|
AbstractParameterizedException(String parameter,
Throwable cause)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getExceptionMessage() |
String |
getMessage() |
String |
getParameter() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected static final String PARAMETER_PLACEHOLDER
public AbstractParameterizedException(String parameter)
parameter - String containing the value of the
parameter for the messageprotected abstract String getExceptionMessage()
public String getMessage()
getMessage in class Throwablepublic String getParameter()
Copyright © 2014–2015. All rights reserved.