Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

ExceptionConstants.java

00001 package de.fub.bytecode;
00002 
00003 /**
00004  * Exception constants.
00005  *
00006  * @version $Id: ExceptionConstants.java,v 1.1.1.1 2002/01/24 03:43:59 pserver Exp $
00007  * @author  <A HREF="http://www.inf.fu-berlin.de/~ehaase">E. Haase</A>
00008  */
00009 public interface ExceptionConstants {
00010   /** The mother of all exceptions
00011    */
00012   public static final Class THROWABLE = Throwable.class;
00013 
00014   /** Super class of any run-time exception
00015    */
00016   public static final Class RUNTIME_EXCEPTION = RuntimeException.class;
00017 
00018   /** Super class of any linking exception (aka Linkage Error)
00019    */
00020   public static final Class LINKING_EXCEPTION = LinkageError.class;
00021 
00022   /** Linking Exceptions
00023    */
00024   public static final Class CLASS_CIRCULARITY_ERROR         = ClassCircularityError.class;
00025   public static final Class CLASS_FORMAT_ERROR              = ClassFormatError.class;
00026   public static final Class EXCEPTION_IN_INITIALIZER_ERROR  = ExceptionInInitializerError.class;
00027   public static final Class INCOMPATIBLE_CLASS_CHANGE_ERROR = IncompatibleClassChangeError.class;
00028   public static final Class ABSTRACT_METHOD_ERROR           = AbstractMethodError.class;
00029   public static final Class ILLEGAL_ACCESS_ERROR            = IllegalAccessError.class;
00030   public static final Class INSTANTIATION_ERROR             = InstantiationError.class;
00031   public static final Class NO_SUCH_FIELD_ERROR             = NoSuchFieldError.class;
00032   public static final Class NO_SUCH_METHOD_ERROR            = NoSuchMethodError.class;
00033   public static final Class NO_CLASS_DEF_FOUND_ERROR        = NoClassDefFoundError.class;
00034   public static final Class UNSATISFIED_LINK_ERROR          = UnsatisfiedLinkError.class;
00035   public static final Class VERIFY_ERROR                    = VerifyError.class;
00036 
00037   /* UnsupportedClassVersionError is new in JDK 1.2 */
00038   //public static final Class UnsupportedClassVersionError = UnsupportedClassVersionError.class;
00039 
00040   /** Run-Time Exceptions 
00041    */
00042   public static final Class NULL_POINTER_EXCEPTION              = NullPointerException.class;
00043   public static final Class ARRAY_INDEX_OUT_OF_BOUNDS_EXCEPTION = ArrayIndexOutOfBoundsException.class;
00044   public static final Class ARITHMETIC_EXCEPTION                = ArithmeticException.class;
00045   public static final Class NEGATIVE_ARRAY_SIZE_EXCEPTION       = NegativeArraySizeException.class;
00046   public static final Class CLASS_CAST_EXCEPTION                = ClassCastException.class;
00047   public static final Class ILLEGAL_MONITOR_STATE               = IllegalMonitorStateException.class;
00048 
00049   /** Pre-defined exception arrays according to chapters 5.1-5.4 of the Java Virtual
00050    * Machine Specification 
00051    */
00052   public static final Class[] EXCS_CLASS_AND_INTERFACE_RESOLUTION = {
00053     NO_CLASS_DEF_FOUND_ERROR, CLASS_FORMAT_ERROR, VERIFY_ERROR, ABSTRACT_METHOD_ERROR,
00054     EXCEPTION_IN_INITIALIZER_ERROR, ILLEGAL_ACCESS_ERROR
00055   }; // Chapter 5.1
00056 
00057   public static final Class[] EXCS_FIELD_AND_METHOD_RESOLUTION = {
00058     NO_SUCH_FIELD_ERROR, ILLEGAL_ACCESS_ERROR, NO_SUCH_METHOD_ERROR
00059   }; // Chapter 5.2
00060 
00061   public static final Class[] EXCS_INTERFACE_METHOD_RESOLUTION = new Class[0]; // Chapter 5.3 (as below)
00062   public static final Class[] EXCS_STRING_RESOLUTION           = new Class[0];
00063   // Chapter 5.4 (no errors but the ones that _always_ could happen! How stupid.)
00064 
00065   public static final Class[] EXCS_ARRAY_EXCEPTION = {
00066     NULL_POINTER_EXCEPTION, ARRAY_INDEX_OUT_OF_BOUNDS_EXCEPTION
00067   };
00068 
00069 }

Generated at Thu Feb 7 06:45:14 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001