Language

ZoneRulesException Constructors

Definition

Overloads

Name Description
ZoneRulesException(String)

Constructs a new date-time exception with the specified message.

ZoneRulesException(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

ZoneRulesException(String, Throwable)

Constructs a new date-time exception with the specified message and cause.

ZoneRulesException(String)

Constructs a new date-time exception with the specified message.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=26)]
public ZoneRulesException(string? message);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=26)>]
new Java.Time.Zone.ZoneRulesException : string -> Java.Time.Zone.ZoneRulesException

Parameters

message
String

the message to use for this exception, may be null

Attributes

Remarks

Constructs a new date-time exception with the specified message.

Java documentation for java.time.zone.ZoneRulesException.ZoneRulesException(java.lang.String).

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

ZoneRulesException(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

protected ZoneRulesException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Time.Zone.ZoneRulesException : nativeint * Android.Runtime.JniHandleOwnership -> Java.Time.Zone.ZoneRulesException

Parameters

javaReference
IntPtr

nativeint

A JNI reference to the Java object.

transfer
JniHandleOwnership

Specifies whether ownership of the JNI reference transfers to this instance.

Remarks

The runtime calls this constructor to create a managed representation of an existing Java object.

Applies to

ZoneRulesException(String, Throwable)

Constructs a new date-time exception with the specified message and cause.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=26)]
public ZoneRulesException(string? message, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=26)>]
new Java.Time.Zone.ZoneRulesException : string * Java.Lang.Throwable -> Java.Time.Zone.ZoneRulesException

Parameters

message
String

the message to use for this exception, may be null

cause
Throwable

the cause of the exception, may be null

Attributes

Remarks

Constructs a new date-time exception with the specified message and cause.

Java documentation for java.time.zone.ZoneRulesException.ZoneRulesException(java.lang.String, java.lang.Throwable).

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