Throwable.GetSuppressed Method

Definition

Returns an array containing all of the exceptions that were suppressed, typically by the try-with-resources statement, in order to deliver this exception.

[Android.Runtime.Register("getSuppressed", "()[Ljava/lang/Throwable;", "")]
public Java.Lang.Throwable[] GetSuppressed ();
[<Android.Runtime.Register("getSuppressed", "()[Ljava/lang/Throwable;", "")>]
member this.GetSuppressed : unit -> Java.Lang.Throwable[]

Returns

an array containing all of the exceptions that were suppressed to deliver this exception.

Attributes

Remarks

Returns an array containing all of the exceptions that were suppressed, typically by the try-with-resources statement, in order to deliver this exception.

If no exceptions were suppressed or #Throwable(String, Throwable, boolean, boolean) suppression is disabled, an empty array is returned. This method is thread-safe. Writes to the returned array do not affect future calls to this method.

Added in 1.7.

Java documentation for java.lang.Throwable.getSuppressed().

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