Package com.siperf.confio.exceptions
Class ConfigurationParameterParseException
java.lang.Object
java.lang.Throwable
com.siperf.confio.exceptions.ConfigurationParseException
com.siperf.confio.exceptions.ConfigurationParameterParseException
- All Implemented Interfaces:
Serializable
Exception thrown when an error occurs while parsing a configuration parameter.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationParameterParseException(String parameterKey, String message) Creates a new exception with the specified parameter key and message.ConfigurationParameterParseException(String parameterKey, String parameterName, String message) Creates a new exception with the specified parameter key, name and message.ConfigurationParameterParseException(String sectionName, String parameterKey, String parameterName, String message) Creates a new exception with the specified section name, parameter key, name and message. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcreateMessage(boolean brief) Returns the parameter key.Returns the parameter name.Returns the section name.Methods inherited from class com.siperf.confio.exceptions.ConfigurationParseException
getDetailedMessage, getMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConfigurationParameterParseException
Creates a new exception with the specified parameter key and message.- Parameters:
parameterKey- the parameter key that caused the errormessage- error message
-
ConfigurationParameterParseException
public ConfigurationParameterParseException(String parameterKey, String parameterName, String message) Creates a new exception with the specified parameter key, name and message.- Parameters:
parameterKey- the parameter key that caused the errorparameterName- the parameter name (optional, can be null)message- error message
-
ConfigurationParameterParseException
public ConfigurationParameterParseException(String sectionName, String parameterKey, String parameterName, String message) Creates a new exception with the specified section name, parameter key, name and message.- Parameters:
sectionName- the section name (optional, can be null)parameterKey- the parameter key that caused the errorparameterName- the parameter name (optional, can be null)message- error message
-
-
Method Details
-
getSectionName
Returns the section name.- Returns:
- section name or null if not specified
-
getParameterKey
Returns the parameter key.- Returns:
- parameter key
-
getParameterName
Returns the parameter name.- Returns:
- parameter name or null if not specified
-
createMessage
- Overrides:
createMessagein classConfigurationParseException
-