ZoneRulesException

  • ZoneRulesException signals issues with time-zone configurations in Java.

  • It's a subclass of DateTimeException and indicates problems with time-zone rules.

  • Two constructors allow creating exceptions with custom messages and causes.

  • It inherits methods from Throwable and Object for exception handling and object management.

public class ZoneRulesException extends DateTimeException

Thrown to indicate a problem with time-zone configuration.

This exception is used to indicate a problems with the configured time-zone rules.

Public Constructor Summary

ZoneRulesException(String message)
Constructs a new date-time exception with the specified message.
ZoneRulesException(String message, Throwable cause)
Constructs a new date-time exception with the specified message and cause.

Inherited Method Summary

Public Constructors

public ZoneRulesException (String message)

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

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

public ZoneRulesException (String message, Throwable cause)

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

Parameters
message the message to use for this exception, may be null
cause the cause of the exception, may be null