diff options
Diffstat (limited to 'vm/Exception.h')
-rw-r--r-- | vm/Exception.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vm/Exception.h b/vm/Exception.h index 404434548..f53c0bfcb 100644 --- a/vm/Exception.h +++ b/vm/Exception.h @@ -35,6 +35,20 @@ INLINE void dvmThrowException(const char* exceptionDescriptor, } /* + * Like dvmThrowChainedException, but takes printf-style args for the message. + */ +void dvmThrowExceptionFmtV(const char* exceptionDescriptor, const char* fmt, + va_list args); +INLINE void dvmThrowExceptionFmt(const char* exceptionDescriptor, + const char* fmt, ...) +{ + va_list args; + va_start(args, fmt); + dvmThrowExceptionFmtV(exceptionDescriptor, fmt, args); + va_end(args); +} + +/* * Throw an exception in the current thread, by class object. */ void dvmThrowChainedExceptionByClass(ClassObject* exceptionClass, |