diff options
Diffstat (limited to 'runtime/common_throws.cc')
| -rw-r--r-- | runtime/common_throws.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/common_throws.cc b/runtime/common_throws.cc index 4f4bed0169..6758d75e47 100644 --- a/runtime/common_throws.cc +++ b/runtime/common_throws.cc @@ -313,6 +313,14 @@ void ThrowIncompatibleClassChangeErrorForMethodConflict(ArtMethod* method) { ArtMethod::PrettyMethod(method).c_str()).c_str()); } +// InternalError + +void ThrowInternalError(const char* fmt, ...) { + va_list args; + va_start(args, fmt); + ThrowException("Ljava/lang/InternalError;", nullptr, fmt, &args); + va_end(args); +} // IOException |