Executable.GetExceptionTypes Method

Definition

Returns an array of Class objects that represent the types of exceptions declared to be thrown by the underlying executable represented by this object.

[Android.Runtime.Register("getExceptionTypes", "()[Ljava/lang/Class;", "GetGetExceptionTypesHandler", ApiSince=26)]
public abstract Java.Lang.Class[] GetExceptionTypes ();
[<Android.Runtime.Register("getExceptionTypes", "()[Ljava/lang/Class;", "GetGetExceptionTypesHandler", ApiSince=26)>]
abstract member GetExceptionTypes : unit -> Java.Lang.Class[]

Returns

Class[]

the exception types declared as being thrown by the executable this object represents

Attributes

Remarks

Returns an array of Class objects that represent the types of exceptions declared to be thrown by the underlying executable represented by this object. Returns an array of length 0 if the executable declares no exceptions in its throws clause.

Java documentation for java.lang.reflect.Executable.getExceptionTypes().

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.

Applies to