1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.bcel.generic;
18
19 /***
20 * Denote an instruction that may throw a run-time or a linking
21 * exception (or both) during execution. This is not quite the truth
22 * as such; because all instructions may throw an
23 * java.lang.VirtualMachineError. These exceptions are omitted.
24 *
25 * The Lava Language Specification specifies exactly which
26 * <i>RUN-TIME</i> and which <i>LINKING</i> exceptions each
27 * instruction may throw which is reflected by the implementers. Due
28 * to the structure of the JVM specification, it may be possible that
29 * an Instruction implementing this interface returns a Class[] of
30 * size 0.
31 *
32 * Please note that we speak of an "exception" here when we mean any
33 * "Throwable" object; so this term is equally used for "Exception"
34 * and "Error" objects.
35 *
36 * @version $Id: ExceptionThrower.java 386056 2006-03-15 11:31:56Z tcurdt $
37 * @author Enver Haase
38 */
39 public interface ExceptionThrower {
40
41 public java.lang.Class[] getExceptions();
42 }