Skip to content

Commit 315072b

Browse files
committed
Fix DateTimeParseException ctor
1 parent 97d80b0 commit 315072b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/shared/src/main/scala/org/threeten/bp/format/DateTimeParseException.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@ class DateTimeParseException(
5656
message: String,
5757
parsedData: CharSequence,
5858
private val errorIndex: Int,
59-
cause: Throwable = null
59+
cause: Throwable
6060
) extends DateTimeException(message, cause) {
6161

62+
def this(message: String, parsedData: CharSequence, errorIndex: Int) =
63+
this(message, parsedData, errorIndex, null)
64+
6265
/**
6366
* The text that was being parsed.
6467
*/

0 commit comments

Comments
 (0)