Language

DateTimeException Constructors

Definition

Overloads

Name Description
DateTimeException(String)

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

DateTimeException(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

DateTimeException(String, Throwable)

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

DateTimeException(String)

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

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

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.DateTimeException.DateTimeException(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

DateTimeException(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

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

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

DateTimeException(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 DateTimeException(string? message, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "", ApiSince=26)>]
new Java.Time.DateTimeException : string * Java.Lang.Throwable -> Java.Time.DateTimeException

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.DateTimeException.DateTimeException(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