Added in API level 26
DateTimeException
open class DateTimeException : RuntimeException
kotlin.Any | ||||
↳ | kotlin.Throwable | |||
↳ | java.lang.Exception | |||
↳ | java.lang.RuntimeException | |||
↳ | java.time.DateTimeException |
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 | |
---|---|
DateTimeException(message: String!) 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 |