1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package eteg.sinon.listener;
24
25 import eteg.sinon.exception.SinonException;
26 import eteg.sinon.executor.ErrorResponse;
27
28 /***
29 * Interface implemented by classes that handle error during the execution
30 * of a collector.
31 * Implementations of this interface must have a public, static method
32 * named <code>getInstance</code> that returns an instance of the class.
33 *
34 * @author <a href="mailto:thiagohp at users.sourceforge.net">Thiago H. de Paula Figueiredo</a>
35 * @author Last modified by $Author: thiagohp $
36 * @version $Revision: 1.2 $
37 */
38 public interface ErrorListener {
39
40 /***
41 * Handles an error ocurred during the execution of a collector and
42 * returns what action to take.
43 *
44 * @param exception a {@link SinonException} describing the error.
45 * @return a {@link ErrorResponse} instance.
46 */
47 public ErrorResponse onError(SinonException exception);
48
49 }