public class WrongParameterValueException extends ParameterException
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
Generated serial version UID.
|
Constructor and Description |
---|
WrongParameterValueException(Parameter<?> parameter,
java.lang.String mid,
Parameter<?> parameter2,
java.lang.String reason)
Thrown by a Parameterizable object in case of wrong parameter format.
|
WrongParameterValueException(Parameter<?> parameter,
java.lang.String read,
java.lang.String reason)
Thrown by a Parameterizable object in case of wrong parameter format.
|
WrongParameterValueException(Parameter<?> parameter,
java.lang.String read,
java.lang.String reason,
java.lang.Throwable cause)
Thrown by a Parameterizable object in case of wrong parameter format.
|
WrongParameterValueException(java.lang.String message)
Thrown by a Parameterizable object in case of wrong parameter format.
|
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
formatCause(java.lang.Throwable cause)
Format the error cause.
|
private static java.lang.String |
formatRead(java.lang.String read)
Format the value read for the parameter.
|
prefixParametersToMessage, prefixParameterToMessage
private static final long serialVersionUID
public WrongParameterValueException(Parameter<?> parameter, java.lang.String read, java.lang.String reason, java.lang.Throwable cause)
parameter
- the parameter that has a wrong valueread
- the value of the parameter readreason
- detailed error descriptioncause
- the causepublic WrongParameterValueException(Parameter<?> parameter, java.lang.String read, java.lang.String reason)
parameter
- the parameter that has a wrong valueread
- the value of the parameter readreason
- detailed error descriptionpublic WrongParameterValueException(Parameter<?> parameter, java.lang.String mid, Parameter<?> parameter2, java.lang.String reason)
parameter
- the parameter that has a wrong valueparameter2
- the second parameter that has a wrong valuereason
- detailed error descriptionpublic WrongParameterValueException(java.lang.String message)
message
- detail messageprivate static java.lang.String formatRead(java.lang.String read)
read
- Read valueprivate static java.lang.String formatCause(java.lang.Throwable cause)
cause
- Error cause.Copyright © 2019 ELKI Development Team. License information.