DateTimeError
- Stability:
stable - Since:
0.1.0
Describes validation, parsing, and conversion failures returned by datetime runtime library functions and methods.
- Qualified id:
com.dataspine.datetime.DateTimeError@1 - Kind:
enum
Variants
InvalidTimezone
The provided time zone name is not present in the runtime time zone database.
Fields
| Name | Type | Description |
|---|---|---|
timezone | String | — |
InvalidLocale
The provided locale tag is not present in the runtime locale database.
Fields
| Name | Type | Description |
|---|---|---|
locale | String | — |
ParseError
A datetime string could not be parsed with the requested pattern.
Fields
| Name | Type | Description |
|---|---|---|
input | String | — |
message | String | — |
InvalidDateTime
The provided calendar fields do not form a valid date or time.
Fields
| Name | Type | Description |
|---|---|---|
message | String | — |
InvalidPattern
The provided datetime pattern is invalid.
Fields
| Name | Type | Description |
|---|---|---|
pattern | String | — |
message | String | — |