Java.Lang.Throwable.InitCause Method
Initializes the cause of this Throwable.

Syntax

[Android.Runtime.Register("initCause", "(Ljava/lang/Throwable;)Ljava/lang/Throwable;", "GetInitCause_Ljava_lang_Throwable_Handler")]
public virtual Throwable InitCause (Throwable throwable)

Parameters

throwable
the cause of this Throwable.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif Throwable is this object.
Java.Lang.IllegalStateExceptionif the cause has already been initialized.

Remarks

Initializes the cause of this Throwable. The cause can only be initialized once.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1