+void exceptions_throw_classformaterror(classinfo *c, const char *message, ...)
+{
+ va_list ap;
+
+ va_start(ap, message);
+ (void) new_classformaterror(c, message, ap);
+ va_end(ap);
+}
+
+
+java_objectheader *new_classnotfoundexception(utf *name)
+{
+ fprintf(stderr, "java.lang.ClassNotFoundException: ");
+ utf_fprint_printable_ascii(stderr, name);
+ fputc('\n', stderr);
+
+ exit(1);
+
+ /* keep compiler happy */
+
+ return NULL;
+}
+
+
+java_objectheader *new_noclassdeffounderror(utf *name)
+{
+ fprintf(stderr, "java.lang.NoClassDefFoundError: ");
+ utf_fprint_printable_ascii(stderr, name);
+ fputc('\n', stderr);
+
+ exit(1);
+
+ /* keep compiler happy */
+
+ return NULL;
+}
+
+
+java_objectheader *exceptions_new_linkageerror(const char *message,
+ classinfo *c)
+{
+ fprintf(stderr, "java.lang.LinkageError: %s",message);
+ if (c) {
+ utf_fprint_printable_ascii_classname(stderr, c->name);
+ }
+ fputc('\n', stderr);
+
+ exit(1);
+
+ /* keep compiler happy */
+
+ return NULL;
+}
+
+java_objectheader *exceptions_new_nosuchmethoderror(classinfo *c,
+ utf *name, utf *desc)
+{
+ fprintf(stderr, "java.lang.NoSuchMethodError: ");
+ utf_fprint_printable_ascii(stderr, c->name);
+ fprintf(stderr, ".");
+ utf_fprint_printable_ascii(stderr, name);
+ utf_fprint_printable_ascii(stderr, desc);
+ fputc('\n', stderr);
+
+ exit(1);
+
+ /* keep compiler happy */
+
+ return NULL;
+}
+
+
+void exceptions_throw_nosuchmethoderror(classinfo *c, utf *name, utf *desc)
+{
+ (void) exceptions_new_nosuchmethoderror(c, name, desc);
+}
+
+