public abstract class AbstractParameterization extends java.lang.Object implements Parameterization
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<ParameterException> |
errors
Errors
|
private static Logging |
LOG
The logger of the class.
|
Constructor and Description |
---|
AbstractParameterization() |
Modifier and Type | Method and Description |
---|---|
void |
clearErrors()
Clear errors.
|
void |
failOnErrors()
Fail on errors, log any error that had occurred.
|
protected void |
finalize()
Upon destruction, report any errors that weren't handled yet.
|
java.util.Collection<ParameterException> |
getErrors()
Get the configuration errors thrown in
Parameterization.grab(de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter<?>) |
void |
logAndClearReportedErrors()
Log any error that has accumulated.
|
void |
reportError(ParameterException e)
Report a configuration error.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
descend, grab, hasErrors, hasUnusedParameters, setValueForOption, tryInstantiate
private static final Logging LOG
java.util.List<ParameterException> errors
public java.util.Collection<ParameterException> getErrors()
Parameterization
Parameterization.grab(de.lmu.ifi.dbs.elki.utilities.optionhandling.parameters.Parameter<?>)
getErrors
in interface Parameterization
public void reportError(ParameterException e)
Parameterization
reportError
in interface Parameterization
e
- Destination to report errors topublic void logAndClearReportedErrors()
public void clearErrors()
public void failOnErrors() throws AbortException
java.lang.RuntimeException
- if any error has occurred.AbortException
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
- ErrorsCopyright © 2019 ELKI Development Team. License information.