CACAO
Macros | Functions
exceptions.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_NAME   "exceptions"
 
#define ADDR_MASK(x)   (x)
 

Functions

static Utf8String get_classname_for_exception (classinfo *c)
 
java_handle_texceptions_get_exception (void)
 
void exceptions_set_exception (java_handle_t *e)
 
void exceptions_clear_exception (void)
 
java_handle_texceptions_get_and_clear_exception (void)
 
static void exceptions_abort (Utf8String classname, Utf8String message)
 
static java_handle_texceptions_new_class_utf (classinfo *c, Utf8String message)
 
static java_handle_texceptions_new_utf (Utf8String classname)
 
static java_handle_texceptions_new_utf_javastring (Utf8String classname, java_handle_t *message)
 
static java_handle_texceptions_new_utf_utf (Utf8String classname, Utf8String message)
 
static void exceptions_throw_utf (Utf8String classname)
 
static void exceptions_throw_utf_throwable (Utf8String classname, java_handle_t *cause)
 
static void exceptions_throw_utf_exception (Utf8String classname, java_handle_t *exception)
 
static void exceptions_throw_utf_cause (Utf8String classname, java_handle_t *cause)
 
static void exceptions_throw_utf_utf (Utf8String classname, Utf8String message)
 
java_handle_texceptions_new_abstractmethoderror (void)
 
java_handle_texceptions_new_arraystoreexception (void)
 
void exceptions_throw_abstractmethoderror (void)
 
void exceptions_throw_classcircularityerror (classinfo *c)
 
void exceptions_throw_classformaterror (classinfo *c, const char *message,...)
 
void exceptions_throw_classformaterror (classinfo *c, Utf8String message)
 
void exceptions_throw_classnotfoundexception (Utf8String name)
 
void exceptions_throw_noclassdeffounderror (Utf8String name)
 
void exceptions_throw_noclassdeffounderror_cause (java_handle_t *cause)
 
void exceptions_throw_noclassdeffounderror_wrong_name (classinfo *c, Utf8String name)
 
void exceptions_throw_exceptionininitializererror (java_handle_t *cause)
 
void exceptions_throw_incompatibleclasschangeerror (classinfo *c, const char *message)
 
void exceptions_throw_instantiationerror (classinfo *c)
 
void exceptions_throw_internalerror (const char *message,...)
 
void exceptions_throw_linkageerror (const char *message, classinfo *c)
 
void exceptions_throw_nosuchfielderror (classinfo *c, Utf8String name)
 
void exceptions_throw_nosuchmethoderror (classinfo *c, Utf8String name, Utf8String desc)
 
void exceptions_throw_outofmemoryerror (void)
 
void exceptions_throw_unsatisfiedlinkerror (Utf8String name)
 
void exceptions_throw_unsupportedclassversionerror (classinfo *c)
 
void exceptions_throw_verifyerror (methodinfo *m, const char *message,...)
 
void exceptions_throw_verifyerror_for_stack (methodinfo *m, int type)
 
java_handle_texceptions_new_arithmeticexception (void)
 
java_handle_texceptions_new_arrayindexoutofboundsexception (s4 index)
 
void exceptions_throw_arrayindexoutofboundsexception (void)
 
void exceptions_throw_arraystoreexception (void)
 
java_handle_texceptions_new_classcastexception (java_handle_t *o)
 
void exceptions_throw_clonenotsupportedexception (void)
 
void exceptions_throw_illegalaccessexception (Utf8String message)
 
void exceptions_throw_illegalargumentexception (void)
 
void exceptions_throw_illegalmonitorstateexception (void)
 
void exceptions_throw_instantiationexception (classinfo *c)
 
void exceptions_throw_interruptedexception (void)
 
void exceptions_throw_invocationtargetexception (java_handle_t *cause)
 
void exceptions_throw_negativearraysizeexception (void)
 
java_handle_texceptions_new_nullpointerexception (void)
 
void exceptions_throw_nullpointerexception (void)
 
void exceptions_throw_privilegedactionexception (java_handle_t *exception)
 
void exceptions_throw_stringindexoutofboundsexception (void)
 
java_handle_texceptions_fillinstacktrace (void)
 
voidexceptions_handle_exception (java_object_t *xptro, void *xpc, void *pv, void *sp)
 
void exceptions_print_exception (java_handle_t *xptr)
 
void exceptions_print_current_exception (void)
 
void exceptions_print_stacktrace (void)
 

Macro Definition Documentation

#define ADDR_MASK (   x)    (x)
#define DEBUG_NAME   "exceptions"

Definition at line 63 of file exceptions.cpp.

Function Documentation

static void exceptions_abort ( Utf8String  classname,
Utf8String  message 
)
static

Definition at line 175 of file exceptions.cpp.

void exceptions_clear_exception ( void  )

Definition at line 127 of file exceptions.cpp.

java_handle_t* exceptions_fillinstacktrace ( void  )

Definition at line 1316 of file exceptions.cpp.

java_handle_t* exceptions_get_and_clear_exception ( void  )

Definition at line 146 of file exceptions.cpp.

java_handle_t* exceptions_get_exception ( void  )

Definition at line 76 of file exceptions.cpp.

void* exceptions_handle_exception ( java_object_t xptro,
void xpc,
void pv,
void sp 
)

Definition at line 1373 of file exceptions.cpp.

java_handle_t* exceptions_new_abstractmethoderror ( void  )

Definition at line 552 of file exceptions.cpp.

java_handle_t* exceptions_new_arithmeticexception ( void  )

Definition at line 1056 of file exceptions.cpp.

java_handle_t* exceptions_new_arrayindexoutofboundsexception ( s4  index)

Definition at line 1074 of file exceptions.cpp.

java_handle_t* exceptions_new_arraystoreexception ( void  )

Definition at line 586 of file exceptions.cpp.

static java_handle_t* exceptions_new_class_utf ( classinfo c,
Utf8String  message 
)
static

Definition at line 209 of file exceptions.cpp.

java_handle_t* exceptions_new_classcastexception ( java_handle_t o)

Definition at line 1137 of file exceptions.cpp.

java_handle_t* exceptions_new_nullpointerexception ( void  )

Definition at line 1260 of file exceptions.cpp.

static java_handle_t* exceptions_new_utf ( Utf8String  classname)
static

Definition at line 247 of file exceptions.cpp.

static java_handle_t* exceptions_new_utf_javastring ( Utf8String  classname,
java_handle_t message 
)
static

Definition at line 284 of file exceptions.cpp.

static java_handle_t* exceptions_new_utf_utf ( Utf8String  classname,
Utf8String  message 
)
static

Definition at line 322 of file exceptions.cpp.

void exceptions_print_current_exception ( void  )

Definition at line 1633 of file exceptions.cpp.

void exceptions_print_exception ( java_handle_t xptr)

Definition at line 1572 of file exceptions.cpp.

void exceptions_print_stacktrace ( void  )

Definition at line 1653 of file exceptions.cpp.

void exceptions_set_exception ( java_handle_t e)

Definition at line 101 of file exceptions.cpp.

void exceptions_throw_abstractmethoderror ( void  )

Definition at line 602 of file exceptions.cpp.

void exceptions_throw_arrayindexoutofboundsexception ( void  )

Definition at line 1113 of file exceptions.cpp.

void exceptions_throw_arraystoreexception ( void  )

Definition at line 1125 of file exceptions.cpp.

void exceptions_throw_classcircularityerror ( classinfo c)

Definition at line 618 of file exceptions.cpp.

void exceptions_throw_classformaterror ( classinfo c,
const char *  message,
  ... 
)

Definition at line 634 of file exceptions.cpp.

void exceptions_throw_classformaterror ( classinfo c,
Utf8String  message 
)

Definition at line 662 of file exceptions.cpp.

void exceptions_throw_classnotfoundexception ( Utf8String  name)

Definition at line 681 of file exceptions.cpp.

void exceptions_throw_clonenotsupportedexception ( void  )

Definition at line 1156 of file exceptions.cpp.

void exceptions_throw_exceptionininitializererror ( java_handle_t cause)

Definition at line 752 of file exceptions.cpp.

void exceptions_throw_illegalaccessexception ( Utf8String  message)

Definition at line 1168 of file exceptions.cpp.

void exceptions_throw_illegalargumentexception ( void  )

Definition at line 1181 of file exceptions.cpp.

void exceptions_throw_illegalmonitorstateexception ( void  )

Definition at line 1194 of file exceptions.cpp.

void exceptions_throw_incompatibleclasschangeerror ( classinfo c,
const char *  message 
)

Definition at line 769 of file exceptions.cpp.

void exceptions_throw_instantiationerror ( classinfo c)

Definition at line 790 of file exceptions.cpp.

void exceptions_throw_instantiationexception ( classinfo c)

Definition at line 1206 of file exceptions.cpp.

void exceptions_throw_internalerror ( const char *  message,
  ... 
)

Definition at line 805 of file exceptions.cpp.

void exceptions_throw_interruptedexception ( void  )

Definition at line 1218 of file exceptions.cpp.

void exceptions_throw_invocationtargetexception ( java_handle_t cause)

Definition at line 1234 of file exceptions.cpp.

void exceptions_throw_linkageerror ( const char *  message,
classinfo c 
)

Definition at line 833 of file exceptions.cpp.

void exceptions_throw_negativearraysizeexception ( void  )

Definition at line 1248 of file exceptions.cpp.

void exceptions_throw_noclassdeffounderror ( Utf8String  name)

Definition at line 700 of file exceptions.cpp.

void exceptions_throw_noclassdeffounderror_cause ( java_handle_t cause)

Definition at line 713 of file exceptions.cpp.

void exceptions_throw_noclassdeffounderror_wrong_name ( classinfo c,
Utf8String  name 
)

Definition at line 729 of file exceptions.cpp.

void exceptions_throw_nosuchfielderror ( classinfo c,
Utf8String  name 
)

Definition at line 863 of file exceptions.cpp.

void exceptions_throw_nosuchmethoderror ( classinfo c,
Utf8String  name,
Utf8String  desc 
)

Definition at line 889 of file exceptions.cpp.

void exceptions_throw_nullpointerexception ( void  )

Definition at line 1277 of file exceptions.cpp.

void exceptions_throw_outofmemoryerror ( void  )

Definition at line 914 of file exceptions.cpp.

void exceptions_throw_privilegedactionexception ( java_handle_t exception)

Definition at line 1289 of file exceptions.cpp.

void exceptions_throw_stringindexoutofboundsexception ( void  )

Definition at line 1303 of file exceptions.cpp.

void exceptions_throw_unsatisfiedlinkerror ( Utf8String  name)

Definition at line 931 of file exceptions.cpp.

void exceptions_throw_unsupportedclassversionerror ( classinfo c)

Definition at line 948 of file exceptions.cpp.

static void exceptions_throw_utf ( Utf8String  classname)
static

Definition at line 351 of file exceptions.cpp.

static void exceptions_throw_utf_cause ( Utf8String  classname,
java_handle_t cause 
)
static

Definition at line 476 of file exceptions.cpp.

static void exceptions_throw_utf_exception ( Utf8String  classname,
java_handle_t exception 
)
static

Definition at line 426 of file exceptions.cpp.

static void exceptions_throw_utf_throwable ( Utf8String  classname,
java_handle_t cause 
)
static

Definition at line 375 of file exceptions.cpp.

static void exceptions_throw_utf_utf ( Utf8String  classname,
Utf8String  message 
)
static

Definition at line 536 of file exceptions.cpp.

void exceptions_throw_verifyerror ( methodinfo m,
const char *  message,
  ... 
)

Definition at line 973 of file exceptions.cpp.

void exceptions_throw_verifyerror_for_stack ( methodinfo m,
int  type 
)

Definition at line 1014 of file exceptions.cpp.

static Utf8String get_classname_for_exception ( classinfo c)
inlinestatic

Definition at line 1748 of file exceptions.cpp.