MethodHandles.ThrowException(Class, Class) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Produces a method handle which will throw exceptions of the given exType.
[Android.Runtime.Register("throwException", "(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)]
public static Java.Lang.Invoke.MethodHandle? ThrowException (Java.Lang.Class? returnType, Java.Lang.Class? exType);
[<Android.Runtime.Register("throwException", "(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;", "", ApiSince=26)>]
static member ThrowException : Java.Lang.Class * Java.Lang.Class -> Java.Lang.Invoke.MethodHandle
Parameters
- returnType
- Class
the return type of the desired method handle
- exType
- Class
the parameter type of the desired method handle
Returns
method handle which can throw the given exceptions
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.