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

C:/temp/src/j2k/Deprecated/Error.old/cstError.hpp

Go to the documentation of this file.
00001 #ifndef __J2K__cstError_HPP__
00002 
00003 #define __J2K__cstError_HPP__
00004 
00005 
00006 
00007 // This will be used to identify an error kind
00008 
00009 // Currently this is based on the Java Error ClassName
00010 
00011 
00012 
00013 // SHORT INT => enum
00014 
00015 // Max: 0xFFFF
00016 
00017 
00018 
00019 #define __J2K__LoThrowType                   ( 0xFF00 )
00020 
00021 #define __J2K__HiThrowType                   ( 0x00FF )
00022 
00023 
00024 
00025 #define __J2K__Throwable                     ( 0x0100 )
00026 
00027 #define __J2K__Error                         ( 0x0200 | __J2K__Throwable )
00028 
00029 #define __J2K__LinkageError                  ( 0x0400 | __J2K__Error     )
00030 
00031 #define __J2K__Exception                     ( 0x0800 | __J2K__Throwable )
00032 
00033 #define __J2K__IncompatibleClassChangeError  ( 0x0F00 | __J2K__LinkageError )
00034 
00035 
00036 
00037 #define __J2K__VirtualMachineError           ( 0x1000 | __J2K__Error     )
00038 
00039 #define __J2K__RuntimeException              ( 0x2000 | __J2K__Exception )
00040 
00041 #define __J2K__IllegalArgumentException      ( 0x4000 | __J2K__RuntimeException )
00042 
00043 #define __J2K__IndexOutOfBoundsException     ( 0x8000 | __J2K__RuntimeException )
00044 
00045                                         
00046 
00047 #define __J2K__ClassNotFoundException        ( __J2K__Exception | 0x01 )
00048 
00049 #define __J2K__CloneNotSupportedException    ( __J2K__Exception | 0x02 )
00050 
00051 #define __J2K__IllegalAccessException        ( __J2K__Exception | 0x04 )
00052 
00053 #define __J2K__InstantiationException        ( __J2K__Exception | 0x08 )
00054 
00055 #define __J2K__InterruptedException          ( __J2K__Exception | 0x10 )
00056 
00057 #define __J2K__NoSuchFieldException          ( __J2K__Exception | 0x20 )
00058 
00059 #define __J2K__NoSuchMethodException         ( __J2K__Exception | 0x40 )
00060 
00061         
00062 
00063 #define __J2K__ArithmeticException           ( __J2K__RuntimeException | 0x01 )
00064 
00065 #define __J2K__ArrayStoreException           ( __J2K__RuntimeException | 0x02 )
00066 
00067 #define __J2K__ClassCastException            ( __J2K__RuntimeException | 0x04 )
00068 
00069 #define __J2K__IllegalStateException         ( __J2K__RuntimeException | 0x08 )
00070 
00071 #define __J2K__IllegalMonitorStateException  ( __J2K__RuntimeException | 0x10 )
00072 
00073 #define __J2K__NegativeArraySizeException    ( __J2K__RuntimeException | 0x20 )
00074 
00075 #define __J2K__NullPointerException          ( __J2K__RuntimeException | 0x40 )
00076 
00077 #define __J2K__SecurityException             ( __J2K__RuntimeException | 0x80 )
00078 
00079 
00080 
00081 #define __J2K__ClassCircularityError         ( __J2K__LinkageError | 0x01 )
00082 
00083 #define __J2K__ClassFormatError              ( __J2K__LinkageError | 0x02 )
00084 
00085 #define __J2K__ExceptionInInitializerError   ( __J2K__LinkageError | 0x04 )
00086 
00087 #define __J2K__NoClassDefFoundError          ( __J2K__LinkageError | 0x08 )
00088 
00089 #define __J2K__UnsatisfiedLinkError          ( __J2K__LinkageError | 0x10 )
00090 
00091 #define __J2K__VerifyError                   ( __J2K__LinkageError | 0x20 )
00092 
00093 
00094 
00095 #define __J2K__IllegalThreadStateException ( __J2K__IllegalArgumentException | 0x01 )
00096 
00097 #define __J2K__NumberFormatException       ( __J2K__IllegalArgumentException | 0x02 )
00098 
00099 
00100 
00101 #define __J2K__AbstractMethodError    ( __J2K__IncompatibleClassChangeError | 0x01 )
00102 
00103 #define __J2K__IllegalAccessError     ( __J2K__IncompatibleClassChangeError | 0x02 )
00104 
00105 #define __J2K__InstantiationError     ( __J2K__IncompatibleClassChangeError | 0x04 )
00106 
00107 #define __J2K__NoSuchFieldError       ( __J2K__IncompatibleClassChangeError | 0x08 )
00108 
00109 #define __J2K__NoSuchMethodError      ( __J2K__IncompatibleClassChangeError | 0x10 )
00110 
00111 
00112 
00113 #define __J2K__ArrayIndexOutOfBoundsException  ( __J2K__IndexOutOfBoundsException | 0x01 )
00114 
00115 #define __J2K__StringIndexOutOfBoundsException ( __J2K__IndexOutOfBoundsException | 0x02 )
00116 
00117                                                                        
00118 
00119 #define __J2K__InternalError                ( __J2K__VirtualMachineError  | 0x01 )
00120 
00121 #define __J2K__OutOfMemoryError             ( __J2K__VirtualMachineError  | 0x02 )
00122 
00123 #define __J2K__StackOverflowError           ( __J2K__VirtualMachineError  | 0x04 )
00124 
00125 #define __J2K__UnknownError                 ( __J2K__VirtualMachineError  | 0x08 )
00126 
00127 
00128 
00129 enum JavaThrowableType {
00130 
00131   Throwable                       = __J2K__Throwable,
00132 
00133   Error                           = __J2K__Error,
00134 
00135   LinkageError                    = __J2K__LinkageError,
00136 
00137   Exception                       = __J2K__Exception,
00138 
00139   IncompatibleClassChangeError    = __J2K__IncompatibleClassChangeError,
00140 
00141   VirtualMachineError             = __J2K__VirtualMachineError,
00142 
00143   RuntimeException                = __J2K__RuntimeException,
00144 
00145   IllegalArgumentException        = __J2K__IllegalArgumentException,
00146 
00147   IndexOutOfBoundsException       = __J2K__IndexOutOfBoundsException,
00148 
00149   ClassNotFoundException          = __J2K__ClassNotFoundException,
00150 
00151   CloneNotSupportedException      = __J2K__CloneNotSupportedException,
00152 
00153   IllegalAccessException          = __J2K__IllegalAccessException,
00154 
00155   InstantiationException          = __J2K__InstantiationException,
00156 
00157   InterruptedException            = __J2K__InterruptedException,
00158 
00159   NoSuchFieldException            = __J2K__NoSuchFieldException,
00160 
00161   NoSuchMethodException           = __J2K__NoSuchMethodException,
00162 
00163   ArithmeticException             = __J2K__ArithmeticException,
00164 
00165   ArrayStoreException             = __J2K__ArrayStoreException,
00166 
00167   ClassCastException              = __J2K__ClassCastException,
00168 
00169   IllegalStateException           = __J2K__IllegalStateException,
00170 
00171   IllegalMonitorStateException    = __J2K__IllegalMonitorStateException,
00172 
00173   NegativeArraySizeException      = __J2K__NegativeArraySizeException,
00174 
00175   NullPointerException            = __J2K__NullPointerException,
00176 
00177   SecurityException               = __J2K__SecurityException,
00178 
00179   ClassCircularityError           = __J2K__ClassCircularityError,
00180 
00181   ClassFormatError                = __J2K__ClassFormatError,
00182 
00183   ExceptionInInitializerError     = __J2K__ExceptionInInitializerError,
00184 
00185   NoClassDefFoundError            = __J2K__NoClassDefFoundError,
00186 
00187   UnsatisfiedLinkError            = __J2K__UnsatisfiedLinkError,
00188 
00189   VerifyError                     = __J2K__VerifyError,
00190 
00191   IllegalThreadStateException     = __J2K__IllegalThreadStateException,
00192 
00193   NumberFormatException           = __J2K__NumberFormatException,
00194 
00195   AbstractMethodError             = __J2K__AbstractMethodError,
00196 
00197   IllegalAccessError              = __J2K__IllegalAccessError,
00198 
00199   InstantiationError              = __J2K__InstantiationError,
00200 
00201   NoSuchFieldError                = __J2K__NoSuchFieldError,
00202 
00203   NoSuchMethodError               = __J2K__NoSuchMethodError,
00204 
00205   ArrayIndexOutOfBoundsException  = __J2K__ArrayIndexOutOfBoundsException,
00206 
00207   StringIndexOutOfBoundsException = __J2K__StringIndexOutOfBoundsException,
00208 
00209   InternalError                   = __J2K__InternalError,
00210 
00211   OutOfMemoryError                = __J2K__OutOfMemoryError,
00212 
00213   StackOverflowError              = __J2K__StackOverflowError,
00214 
00215   UnknownError                    = __J2K__UnknownError
00216 
00217 };
00218 
00219 
00220 
00221 #endif
00222 

Generated on Sun Oct 14 18:46:19 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001