Package es.urjc.etsii.grafo.exception
Class ExceptionHandler<S extends Solution<S,I>,I extends Instance>
java.lang.Object
es.urjc.etsii.grafo.exception.ExceptionHandler<S,I>
- Type Parameters:
S
- Solution classI
- Instance class
- Direct Known Subclasses:
DefaultExceptionHandler
Abstract class to provide behaviour when an uncontrolled exception reaches executor code.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ExceptionHandler
public ExceptionHandler()
-
-
Method Details
-
handleException
public abstract void handleException(String experimentName, int iteration, Exception e, Optional<S> s, I i, Algorithm<S, I> algorithm) What should be done when there is an unhandled exception in the user algorithm implementation?- Parameters:
experimentName
- Experiment nameiteration
- Iteration if known, -1 if note
- Thrown exceptions
- Current solution, if availablei
- Current instancealgorithm
- Current algorithm
-
toString
-