Dela via


DateTimeParseException Constructors

Definition

Overloads

DateTimeParseException(IntPtr, JniHandleOwnership)
DateTimeParseException(String, ICharSequence, Int32)

Constructs a new exception with the specified message.

DateTimeParseException(String, String, Int32)
DateTimeParseException(String, ICharSequence, Int32, Throwable)

Constructs a new exception with the specified message and cause.

DateTimeParseException(String, String, Int32, Throwable)

DateTimeParseException(IntPtr, JniHandleOwnership)

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

Parameters

javaReference
IntPtr

nativeint

Applies to

DateTimeParseException(String, ICharSequence, Int32)

Constructs a new exception with the specified message.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;I)V", "", ApiSince=26)]
public DateTimeParseException (string? message, Java.Lang.ICharSequence? parsedData, int errorIndex);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;I)V", "", ApiSince=26)>]
new Java.Time.Format.DateTimeParseException : string * Java.Lang.ICharSequence * int -> Java.Time.Format.DateTimeParseException

Parameters

message
String

the message to use for this exception, may be null

parsedData
ICharSequence

the parsed text, should not be null

errorIndex
Int32

the index in the parsed string that was invalid, should be a valid index

Attributes

Remarks

Constructs a new exception with the specified message.

Java documentation for java.time.format.DateTimeParseException.DateTimeParseException(java.lang.String, java.lang.CharSequence, int).

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

DateTimeParseException(String, String, Int32)

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;I)V", "", ApiSince=26)]
public DateTimeParseException (string? message, string? parsedData, int errorIndex);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;I)V", "", ApiSince=26)>]
new Java.Time.Format.DateTimeParseException : string * string * int -> Java.Time.Format.DateTimeParseException

Parameters

message
String
parsedData
String
errorIndex
Int32
Attributes

Applies to

DateTimeParseException(String, ICharSequence, Int32, Throwable)

Constructs a new exception with the specified message and cause.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;ILjava/lang/Throwable;)V", "", ApiSince=26)]
public DateTimeParseException (string? message, Java.Lang.ICharSequence? parsedData, int errorIndex, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;ILjava/lang/Throwable;)V", "", ApiSince=26)>]
new Java.Time.Format.DateTimeParseException : string * Java.Lang.ICharSequence * int * Java.Lang.Throwable -> Java.Time.Format.DateTimeParseException

Parameters

message
String

the message to use for this exception, may be null

parsedData
ICharSequence

the parsed text, should not be null

errorIndex
Int32

the index in the parsed string that was invalid, should be a valid index

cause
Throwable

the cause exception, may be null

Attributes

Remarks

Constructs a new exception with the specified message and cause.

Java documentation for java.time.format.DateTimeParseException.DateTimeParseException(java.lang.String, java.lang.CharSequence, int, 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

DateTimeParseException(String, String, Int32, Throwable)

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;ILjava/lang/Throwable;)V", "", ApiSince=26)]
public DateTimeParseException (string? message, string? parsedData, int errorIndex, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;ILjava/lang/Throwable;)V", "", ApiSince=26)>]
new Java.Time.Format.DateTimeParseException : string * string * int * Java.Lang.Throwable -> Java.Time.Format.DateTimeParseException

Parameters

message
String
parsedData
String
errorIndex
Int32
cause
Throwable
Attributes

Applies to