Added in API level 26

DateTimeException

open class DateTimeException : RuntimeException
DateTimeParseException

An exception thrown when an error occurs during parsing.

UnsupportedTemporalTypeException

UnsupportedTemporalTypeException indicates that a ChronoField or ChronoUnit is not supported for a Temporal class.

ZoneRulesException

Thrown to indicate a problem with time-zone configuration.

Exception used to indicate a problem while calculating a date-time.

This exception is used to indicate problems with creating, querying and manipulating date-time objects.

Summary

Public constructors

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

DateTimeException(message: String!, cause: Throwable!)

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

Public constructors

DateTimeException

Added in API level 26
DateTimeException(message: String!)

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

Parameters
message String!: the message to use for this exception, may be null

DateTimeException

Added in API level 26
DateTimeException(
    message: String!,
    cause: Throwable!)

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

Parameters
message String!: the message to use for this exception, may be null
cause Throwable!: the cause of the exception, may be null