diff options
author | Dan Bornstein <danfuzz@android.com> | 2011-02-23 14:11:27 -0800 |
---|---|---|
committer | Dan Bornstein <danfuzz@android.com> | 2011-02-23 14:11:27 -0800 |
commit | 70b00abc45d7d04342a96a03749f993028b060f7 (patch) | |
tree | ff02304ee20cf7ff13a9aee7a0f06aa4ea4e94f6 /vm/Exception.h | |
parent | e0bf971b4c692658a419d01c08a738e707564010 (diff) | |
download | android_dalvik-70b00abc45d7d04342a96a03749f993028b060f7.tar.gz android_dalvik-70b00abc45d7d04342a96a03749f993028b060f7.tar.bz2 android_dalvik-70b00abc45d7d04342a96a03749f993028b060f7.zip |
Round two.
This gets most of the rest of the cases where a simple(ish) message
is included with a throw.
Change-Id: Id081966e5c505063c4d4dcf936037cf4d55fc8bf
Diffstat (limited to 'vm/Exception.h')
-rw-r--r-- | vm/Exception.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/vm/Exception.h b/vm/Exception.h index 7f02b9079..e2ee77fe5 100644 --- a/vm/Exception.h +++ b/vm/Exception.h @@ -66,6 +66,18 @@ void dvmThrowArrayStoreException(ClassObject* actual, ClassObject* desired); void dvmThrowClassCastException(ClassObject* actual, ClassObject* desired); /** + * Throw a ClassCircularityError in the current thread, with the + * human-readable form of the given descriptor as the detail message. + */ +void dvmThrowClassCircularityError(const char* descriptor); + +/** + * Throw a ClassFormatError in the current thread, with the given + * detail message. + */ +void dvmThrowClassFormatError(const char* msg); + +/** * Throw a ClassNotFoundException in the current thread, with the given * detail message. */ @@ -120,6 +132,19 @@ void dvmThrowIllegalStateException(const char* msg); void dvmThrowIllegalThreadStateException(const char* msg); /** + * Throw an IncompatibleClassChangeError in the current thread, + * the given detail message. + */ +void dvmThrowIncompatibleClassChangeError(const char* msg); + +/** + * Throw an IncompatibleClassChangeError in the current thread, with the + * human-readable form of the given descriptor as the detail message. + */ +void dvmThrowIncompatibleClassChangeErrorWithClassMessage( + const char* descriptor); + +/** * Throw an InternalError in the current thread, with the given * detail message. */ @@ -132,6 +157,12 @@ void dvmThrowInternalError(const char* msg); void dvmThrowInterruptedException(const char* msg); /** + * Throw a LinkageError in the current thread, with the + * given detail message. + */ +void dvmThrowLinkageError(const char* msg); + +/** * Throw a NegativeArraySizeException in the current thread, with the * given detail message. */ @@ -186,11 +217,23 @@ void dvmThrowRuntimeException(const char* msg); void dvmThrowStringIndexOutOfBoundsException(const char* msg); /** + * Throw an UnsatisfiedLinkError in the current thread, with + * the given detail message. + */ +void dvmThrowUnsatisfiedLinkError(const char* msg); + +/** * Throw an UnsupportedOperationException in the current thread, with * the given detail message. */ void dvmThrowUnsupportedOperationException(const char* msg); +/** + * Throw a VirtualMachineError in the current thread, with + * the given detail message. + */ +void dvmThrowVirtualMachineError(const char* msg); + /* * Like dvmThrowChainedException, but takes printf-style args for the message. */ |