APIdia Launch Partner
Top Description Fields Constructors
java.time

public Class DateTimeException

extends RuntimeException
Class Inheritance
Known Direct Subclasses
java.time.format.DateTimeParseException, java.time.temporal.UnsupportedTemporalTypeException, java.time.zone.ZoneRulesException

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.

Implementation Specification

This class is intended for use in a single thread.

Since
1.8

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
DateTimeException(String
the message to use for this exception, may be null
message
)

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

public
DateTimeException(String
the message to use for this exception, may be null
message
,
Throwable
the cause of the exception, may be null
cause
)

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

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Serialization version.

Annotations
@Serial

Constructor Detail

DateTimeExceptionback to summary
public DateTimeException(String message)

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

Parameters
message:String

the message to use for this exception, may be null

DateTimeExceptionback to summary
public DateTimeException(String message, Throwable cause)

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