OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 83 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 83 Rev 180
Line 21... Line 21...
21
 * @param <E> input type
21
 * @param <E> input type
22
 * @param <X> exception type
22
 * @param <X> exception type
23
 */
23
 */
24
public abstract class ExnClosure<E, X extends Exception> extends ExnTransformer<E, Object, X> implements IExnClosure<E, X> {
24
public abstract class ExnClosure<E, X extends Exception> extends ExnTransformer<E, Object, X> implements IExnClosure<E, X> {
25
 
25
 
26
    public final void execute(Object input) {
-
 
27
        this.transform(input);
-
 
28
    }
-
 
29
 
-
 
30
    /**
26
    /**
31
     * Execute this closure, making sure that an exception of type <code>exnClass</code> is thrown.
27
     * Execute this closure, making sure that an exception of type <code>exnClass</code> is thrown.
32
     * 
28
     * 
33
     * @param <Y> type of exception to throw.
29
     * @param <Y> type of exception to throw.
34
     * @param input the input of the closure.
30
     * @param input the input of the closure.