Stay organized with collections
Save and categorize content based on your preferences.
ZoneRulesException
open class ZoneRulesException : DateTimeException
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 |
Constructs a new date-time exception with the specified message.
|
Constructs a new date-time exception with the specified message and cause.
|
Public constructors
ZoneRulesException
ZoneRulesException(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 |
ZoneRulesException
ZoneRulesException(
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# ZoneRulesException\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nZoneRulesException\n==================\n\n```\nopen class ZoneRulesException : DateTimeException\n```\n\n|---|---|---|---|---|----------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||||||\n| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) |||||\n| | ↳ | [java.lang.Exception](../../lang/Exception.html#) ||||\n| | | ↳ | [java.lang.RuntimeException](../../lang/RuntimeException.html#) |||\n| | | | ↳ | [java.time.DateTimeException](../DateTimeException.html#) ||\n| | | | | ↳ | [java.time.zone.ZoneRulesException](#) |\n\nThrown to indicate a problem with time-zone configuration.\n\nThis exception is used to indicate a problems with the configured time-zone rules.\n\nSummary\n-------\n\n| Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [ZoneRulesException](#ZoneRulesException(kotlin.String))`(`message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs a new date-time exception with the specified message. |\n| [ZoneRulesException](#ZoneRulesException(kotlin.String,%20kotlin.Throwable))`(`message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `cause:` `[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!`)` Constructs a new date-time exception with the specified message and cause. |\n\nPublic constructors\n-------------------\n\n### ZoneRulesException\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nZoneRulesException(message: String!)\n```\n\nConstructs a new date-time exception with the specified message.\n\n| Parameters ||\n|-----------|---------------------------------------------------------------------------------------------------------------------------------------|\n| `message` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the message to use for this exception, may be null |\n\n### ZoneRulesException\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nZoneRulesException(\n message: String!, \n cause: Throwable!)\n```\n\nConstructs a new date-time exception with the specified message and cause.\n\n| Parameters ||\n|-----------|---------------------------------------------------------------------------------------------------------------------------------------|\n| `message` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the message to use for this exception, may be null |\n| `cause` | [Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!: the cause of the exception, may be null |"]]