Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AndroidJNI.ThrowNew

static function ThrowNew(clazz: IntPtr, message: string): int;
static int ThrowNew(IntPtr clazz, string message);
static def ThrowNew(clazz as IntPtr, message as string) as int

Description

Constructs an exception object from the specified class with the message specified by message and causes that exception to be thrown.