Java.Interop.ExportAttribute.Throws Property
Specifies which types could be thrown, which will be used to indicate the checked exceptions.

Syntax

public Type[] Throws { get; set; }

Value

The exception types.

Remarks

Unlike managed methods, Java methods explicitly requires the types of exceptions that could be thrown by the method. This property is to fill this gap.

Note that the generated Android Callable Wrapper (ACW) does not necessarily throws checked exceptions. It could rather throw RuntimeException which is unchecked.

Requirements

Namespace: Java.Interop
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0