Method.GetGenericExceptionTypes 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.
Returns an array of Type objects that represent the exceptions declared to be thrown by this executable object.
[Android.Runtime.Register("getGenericExceptionTypes", "()[Ljava/lang/reflect/Type;", "")]
public override Java.Lang.Reflect.IType[]? GetGenericExceptionTypes();
[<Android.Runtime.Register("getGenericExceptionTypes", "()[Ljava/lang/reflect/Type;", "")>]
override this.GetGenericExceptionTypes : unit -> Java.Lang.Reflect.IType[]
Returns
an array of Types that represent the exception types thrown by the underlying executable
- Attributes
Exceptions
if the generic method signature is invalid
if any exception type points to a missing type
if any exception type points to a type that cannot be instantiated for some reason
Remarks
Returns an array of Type objects that represent the exceptions declared to be thrown by this executable object. Returns an array of length 0 if the underlying executable declares no exceptions in its throws clause. If an exception type is a type variable or a parameterized type, it is created. Otherwise, it is resolved.
Added in 1.5.
Java documentation for java.lang.reflect.Method.getGenericExceptionTypes().
Java reference for java.lang.reflect.Method.getGenericExceptionTypes.
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.