Package elki.utilities.optionhandling
Class ParameterException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- elki.utilities.optionhandling.ParameterException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
WrongParameterValueException
public class ParameterException extends java.lang.Exception
Abstract super class for all exceptions thrown during parameterization.- Since:
- 0.1
- Author:
- Elke Achtert
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
Serialization version
-
Constructor Summary
Constructors Constructor Description ParameterException(Parameter<?> p, java.lang.String message)
Constructor.ParameterException(Parameter<?> p, java.lang.String message, java.lang.Throwable cause)
Constructor.ParameterException(java.lang.String message)
Constructor.ParameterException(java.lang.String message, java.lang.Throwable cause)
Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
prefixParametersToMessage(Parameter<?> p, java.lang.String mid, Parameter<?> p2, java.lang.String message)
Prefix parameters to error message.static java.lang.String
prefixParameterToMessage(Parameter<?> p, java.lang.String message)
Prefix parameter information to error message.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serialization version- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ParameterException
public ParameterException(Parameter<?> p, java.lang.String message)
Constructor.- Parameters:
p
- Parametermessage
- Error message
-
ParameterException
public ParameterException(Parameter<?> p, java.lang.String message, java.lang.Throwable cause)
Constructor.- Parameters:
p
- Parametermessage
- Error messagecause
- root cause
-
ParameterException
public ParameterException(java.lang.String message)
Constructor.- Parameters:
message
- Error message
-
ParameterException
public ParameterException(java.lang.String message, java.lang.Throwable cause)
Constructor.- Parameters:
message
- Error messagecause
- root cause
-
-
Method Detail
-
prefixParameterToMessage
public static java.lang.String prefixParameterToMessage(Parameter<?> p, java.lang.String message)
Prefix parameter information to error message.- Parameters:
p
- Parametermessage
- Error message- Returns:
- Combined error message
-
-