1 /* src/vm/exceptions.h - exception related functions prototypes
3 Copyright (C) 1996-2005, 2006, 2007, 2008
4 CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
6 This file is part of CACAO.
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2, or (at
11 your option) any later version.
13 This program is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
32 #include "vm/global.h"
34 #include "vmcore/references.h"
35 #include "vmcore/method.h"
38 /* function prototypes ********************************************************/
40 java_handle_t *exceptions_get_exception(void);
41 void exceptions_set_exception(java_handle_t *o);
42 void exceptions_clear_exception(void);
43 java_handle_t *exceptions_get_and_clear_exception(void);
46 /* functions to generate compiler exceptions */
48 java_handle_t *exceptions_new_abstractmethoderror(void);
49 java_object_t *exceptions_asm_new_abstractmethoderror(u1 *sp, u1 *ra);
50 java_handle_t *exceptions_new_arraystoreexception(void);
52 void exceptions_throw_abstractmethoderror(void);
53 void exceptions_throw_classcircularityerror(classinfo *c);
54 void exceptions_throw_classformaterror(classinfo *c, const char *message, ...);
55 void exceptions_throw_classnotfoundexception(utf *name);
56 void exceptions_throw_noclassdeffounderror(utf *name);
57 void exceptions_throw_noclassdeffounderror_cause(java_handle_t *cause);
58 void exceptions_throw_noclassdeffounderror_wrong_name(classinfo *c, utf *name);
59 void exceptions_throw_linkageerror(const char *message, classinfo *c);
60 void exceptions_throw_nosuchfielderror(classinfo *c, utf *name);
61 void exceptions_throw_nosuchmethoderror(classinfo *c, utf *name, utf *desc);
62 void exceptions_throw_exceptionininitializererror(java_handle_t *cause);
63 void exceptions_throw_incompatibleclasschangeerror(classinfo *c,
65 void exceptions_throw_instantiationerror(classinfo *c);
66 void exceptions_throw_internalerror(const char *message, ...);
67 void exceptions_throw_outofmemoryerror(void);
68 void exceptions_throw_verifyerror(methodinfo *m, const char *message, ...);
69 void exceptions_throw_verifyerror_for_stack(methodinfo *m, int type);
70 void exceptions_throw_unsatisfiedlinkerror(utf *name);
71 void exceptions_throw_unsupportedclassversionerror(classinfo *c, u4 ma, u4 mi);
73 java_handle_t *exceptions_new_arithmeticexception(void);
75 java_handle_t *exceptions_new_arrayindexoutofboundsexception(s4 index);
76 void exceptions_throw_arrayindexoutofboundsexception(void);
77 void exceptions_throw_arraystoreexception(void);
79 java_handle_t *exceptions_new_classcastexception(java_handle_t *o);
81 void exceptions_throw_clonenotsupportedexception(void);
82 void exceptions_throw_illegalaccessexception(utf *message);
83 void exceptions_throw_illegalargumentexception(void);
84 void exceptions_throw_illegalmonitorstateexception(void);
85 void exceptions_throw_interruptedexception(void);
86 void exceptions_throw_instantiationexception(classinfo *c);
87 void exceptions_throw_invocationtargetexception(java_handle_t *cause);
88 void exceptions_throw_negativearraysizeexception(void);
90 java_handle_t *exceptions_new_nullpointerexception(void);
91 void exceptions_throw_nullpointerexception(void);
92 void exceptions_throw_privilegedactionexception(java_handle_t *cause);
93 void exceptions_throw_stringindexoutofboundsexception(void);
95 java_handle_t *exceptions_fillinstacktrace(void);
97 void exceptions_print_exception(java_handle_t *xptr);
98 void exceptions_print_current_exception(void);
99 void exceptions_print_stacktrace(void);
101 #endif /* _EXCEPTIONS_H */
105 * These are local overrides for various environment variables in Emacs.
106 * Please do not remove this and leave it at the end of the file, where
107 * Emacs will automagically detect them.
108 * ---------------------------------------------------------------------
111 * indent-tabs-mode: t
115 * vim:noexpandtab:sw=4:ts=4: