Added in API level 26

ZoneRulesException

public class ZoneRulesException
extends DateTimeException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.time.DateTimeException
           ↳ java.time.zone.ZoneRulesException


Thrown to indicate a problem with time-zone configuration.

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

Summary

Public constructors

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 methods

Public constructors

ZoneRulesException

Added in API level 26
public ZoneRulesException (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

ZoneRulesException

Added in API level 26
public ZoneRulesException (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