Package elki.utilities.optionhandling
Class WrongParameterValueException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- elki.utilities.optionhandling.ParameterException
-
- elki.utilities.optionhandling.WrongParameterValueException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
UnspecifiedParameterException
public class WrongParameterValueException extends ParameterException
Thrown by a Parameterizable object in case of wrong parameter format.- Since:
- 0.1
- Author:
- Steffi Wanka
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
Generated serial version UID.
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class elki.utilities.optionhandling.ParameterException
prefixParametersToMessage, prefixParameterToMessage
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Generated serial version UID.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WrongParameterValueException
public 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.- Parameters:
parameter
- the parameter that has a wrong valueread
- the value of the parameter readreason
- detailed error descriptioncause
- the cause
-
WrongParameterValueException
public WrongParameterValueException(Parameter<?> parameter, java.lang.String read, java.lang.String reason)
Thrown by a Parameterizable object in case of wrong parameter format.- Parameters:
parameter
- the parameter that has a wrong valueread
- the value of the parameter readreason
- detailed error description
-
WrongParameterValueException
public WrongParameterValueException(Parameter<?> parameter, java.lang.String mid, Parameter<?> parameter2, java.lang.String reason)
Thrown by a Parameterizable object in case of wrong parameter format.- Parameters:
parameter
- the parameter that has a wrong valueparameter2
- the second parameter that has a wrong valuereason
- detailed error description
-
WrongParameterValueException
public WrongParameterValueException(java.lang.String message)
Thrown by a Parameterizable object in case of wrong parameter format.- Parameters:
message
- detail message
-
-
Method Detail
-
formatRead
private static java.lang.String formatRead(java.lang.String read)
Format the value read for the parameter.- Parameters:
read
- Read value- Returns:
- String
-
formatCause
private static java.lang.String formatCause(java.lang.Throwable cause)
Format the error cause.- Parameters:
cause
- Error cause.- Returns:
- String representation
-
-