add error classes

This commit is contained in:
Zsombor Gegesy 2010-08-15 03:39:58 +02:00 committed by Joel Dice
parent a50fda1a5e
commit 4169425307
2 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,26 @@
/* Copyright (c) 2010, Avian Contributors
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted, provided
that the above copyright notice and this permission notice appear
in all copies.
There is NO WARRANTY for this software. See license.txt for
details. */
package java.lang;
/**
* TODO : current Avian runtime doesn't check, need to be implemented.
*
*/
public class IllegalAccessError extends IncompatibleClassChangeError {
public IllegalAccessError(String message) {
super(message);
}
public IllegalAccessError() {
}
}

View File

@ -0,0 +1,26 @@
/* Copyright (c) 2010, Avian Contributors
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted, provided
that the above copyright notice and this permission notice appear
in all copies.
There is NO WARRANTY for this software. See license.txt for
details. */
package java.lang;
/**
* TODO : current Avian runtime doesn't check, need to be implemented.
*
*/
public class InstantiationError extends IncompatibleClassChangeError {
public InstantiationError(String message) {
super(message);
}
public InstantiationError() {
}
}