Freigeben über


DateTimeException Constructors

Definition

Overloads

DateTimeException(String)

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

DateTimeException(IntPtr, JniHandleOwnership)
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)

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

Parameters

javaReference
IntPtr

nativeint

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