-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexcep.h
34 lines (32 loc) · 1.33 KB
/
excep.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#define EXCEPTIONS_DO(action) \
action(java_lang_LinkageError), \
action(java_lang_InternalError), \
action(java_lang_ClassFormatError), \
action(java_lang_NoSuchFieldError), \
action(java_lang_OutOfMemoryError), \
action(java_lang_NoSuchMethodError), \
action(java_lang_IllegalAccessError), \
action(java_lang_ClassCastException), \
action(java_lang_StackOverflowError), \
action(java_lang_InstantiationError), \
action(java_lang_ArithmeticException), \
action(java_lang_AbstractMethodError), \
action(java_lang_ArrayStoreException), \
action(java_lang_NullPointerException), \
action(java_lang_NoClassDefFoundError), \
action(java_lang_UnsatisfiedLinkError), \
action(java_lang_InterruptedException), \
action(java_lang_ClassNotFoundException), \
action(java_lang_IllegalAccessException), \
action(java_lang_IllegalArgumentException), \
action(java_lang_NegativeArraySizeException), \
action(java_lang_IllegalThreadStateException), \
action(java_lang_IllegalMonitorStateException), \
action(java_lang_IncompatibleClassChangeError), \
action(java_lang_ArrayIndexOutOfBoundsException), \
action(java_lang_StringIndexOutOfBoundsException)
#define EXCEPTION_ENUM(name) exception_##name
enum {
EXCEPTIONS_DO(EXCEPTION_ENUM),
MAX_EXCEPTION_ENUM
};