CACAO
exceptions.hpp
Go to the documentation of this file.
1 /* src/vm/exceptions.hpp - exception related functions prototypes
2 
3  Copyright (C) 1996-2013
4  CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
5 
6  This file is part of CACAO.
7 
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.
12 
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.
17 
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
21  02110-1301, USA.
22 
23 */
24 
25 
26 #ifndef EXCEPTIONS_HPP_
27 #define EXCEPTIONS_HPP_ 1
28 
29 #include "config.h"
30 
31 #include "vm/global.hpp"
32 #include "vm/types.hpp"
33 #include "vm/utf8.hpp"
34 
35 struct classinfo;
36 struct methodinfo;
37 
38 /* function prototypes ********************************************************/
39 
44 
45 
46 /* functions to generate compiler exceptions */
47 
50 
53 void exceptions_throw_classformaterror(classinfo *c, const char *message, ...);
59 void exceptions_throw_linkageerror(const char *message, classinfo *c);
64  const char *message);
66 void exceptions_throw_internalerror(const char *message, ...);
68 void exceptions_throw_verifyerror(methodinfo *m, const char *message, ...);
72 
74 
78 
80 
89 
94 
96 
100 
101 extern "C" void *exceptions_handle_exception(java_object_t *xptro, void *xpc, void *pv, void *sp);
102 
103 #endif // EXCEPTIONS_HPP_
104 
105 
106 /*
107  * These are local overrides for various environment variables in Emacs.
108  * Please do not remove this and leave it at the end of the file, where
109  * Emacs will automagically detect them.
110  * ---------------------------------------------------------------------
111  * Local variables:
112  * mode: c++
113  * indent-tabs-mode: t
114  * c-basic-offset: 4
115  * tab-width: 4
116  * End:
117  * vim:noexpandtab:sw=4:ts=4:
118  */
void exceptions_throw_verifyerror(methodinfo *m, const char *message,...)
Definition: exceptions.cpp:973
void exceptions_throw_illegalargumentexception(void)
void exceptions_throw_noclassdeffounderror_wrong_name(classinfo *c, Utf8String name)
Definition: exceptions.cpp:729
std::size_t index
#define pv
Definition: md-asm.hpp:65
java_handle_t * exceptions_new_arraystoreexception(void)
Definition: exceptions.cpp:586
void exceptions_print_stacktrace(void)
void exceptions_throw_illegalmonitorstateexception(void)
void exceptions_throw_linkageerror(const char *message, classinfo *c)
Definition: exceptions.cpp:833
void exceptions_throw_arraystoreexception(void)
void exceptions_throw_classnotfoundexception(Utf8String name)
Definition: exceptions.cpp:681
void exceptions_throw_nosuchmethoderror(classinfo *c, Utf8String name, Utf8String desc)
Definition: exceptions.cpp:889
void exceptions_throw_exceptionininitializererror(java_handle_t *cause)
Definition: exceptions.cpp:752
void exceptions_throw_interruptedexception(void)
void exceptions_throw_clonenotsupportedexception(void)
void exceptions_throw_nosuchfielderror(classinfo *c, Utf8String name)
Definition: exceptions.cpp:863
void exceptions_throw_classcircularityerror(classinfo *c)
Definition: exceptions.cpp:618
void exceptions_throw_instantiationerror(classinfo *c)
Definition: exceptions.cpp:790
java_handle_t * exceptions_new_nullpointerexception(void)
void exceptions_throw_classformaterror(classinfo *c, const char *message,...)
Definition: exceptions.cpp:634
JNIEnv jclass jobject const char * name
Definition: jvmti.h:312
void exceptions_throw_noclassdeffounderror(Utf8String name)
Definition: exceptions.cpp:700
#define exceptions_handle_exception
Definition: md-asm.hpp:102
java_handle_t * exceptions_new_classcastexception(java_handle_t *o)
#define xpc
Definition: md-asm.hpp:51
java_handle_t * exceptions_new_arrayindexoutofboundsexception(s4 index)
void exceptions_print_current_exception(void)
void exceptions_set_exception(java_handle_t *e)
Definition: exceptions.cpp:101
void exceptions_throw_incompatibleclasschangeerror(classinfo *c, const char *message)
Definition: exceptions.cpp:769
void exceptions_throw_instantiationexception(classinfo *c)
void exceptions_throw_nullpointerexception(void)
void exceptions_throw_abstractmethoderror(void)
Definition: exceptions.cpp:602
void exceptions_throw_internalerror(const char *message,...)
Definition: exceptions.cpp:805
#define exceptions_get_and_clear_exception
Definition: md-asm.hpp:98
int32_t s4
Definition: types.hpp:45
void exceptions_throw_negativearraysizeexception(void)
void exceptions_throw_privilegedactionexception(java_handle_t *exception)
void exceptions_throw_arrayindexoutofboundsexception(void)
void exceptions_throw_illegalaccessexception(Utf8String message)
#define sp
Definition: md-asm.hpp:81
java_handle_t * exceptions_fillinstacktrace(void)
void exceptions_clear_exception(void)
Definition: exceptions.cpp:127
void exceptions_throw_unsupportedclassversionerror(classinfo *c)
Definition: exceptions.cpp:948
java_handle_t * exceptions_get_exception(void)
Definition: exceptions.cpp:76
void exceptions_throw_noclassdeffounderror_cause(java_handle_t *cause)
Definition: exceptions.cpp:713
void exceptions_throw_invocationtargetexception(java_handle_t *cause)
void exceptions_print_exception(java_handle_t *xptr)
void exceptions_throw_verifyerror_for_stack(methodinfo *m, int type)
void exceptions_throw_unsatisfiedlinkerror(Utf8String name)
Definition: exceptions.cpp:931
java_handle_t * exceptions_new_abstractmethoderror(void)
Definition: exceptions.cpp:552
java_handle_t * exceptions_new_arithmeticexception(void)
void exceptions_throw_outofmemoryerror(void)
Definition: exceptions.cpp:914
void exceptions_throw_stringindexoutofboundsexception(void)
#define xptr
Definition: md-asm.hpp:50