This commit is contained in:
David Štaleker
2025-07-18 05:33:16 +02:00
parent 401a367e5d
commit db0cc8d3de
14776 changed files with 9251484 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
## E_DEFAULT_LOCALE_NOT_DEFINED
Thrown when any static method, eg. `Globalize.formatNumber()` is used prior to setting the Global locale with `Globalize.locale( <locale> )`.
Error object:
| Attribute | Value |
| --- | --- |
| code | `E_DEFAULT_LOCALE_NOT_DEFINED` |

View File

@@ -0,0 +1,14 @@
## E_INVALID_CLDR
Thrown when a CLDR item has an invalid or unexpected value.
Error object:
| Attribute | Value |
| --- | --- |
| code | `E_INVALID_CLDR` |
| description | Reason why the data was considered invalid |
- description "Missing rules to deduce plural form of \`{value}\`"
Thrown when the plural form (also known as plural group) is not found for the given value. This error is very unlikely to occur and is related to incomplete or invalid CLDR `supplemental/plurals-type-cardinal/{language}` data.

View File

@@ -0,0 +1,12 @@
## E_INVALID_PAR_TYPE
Thrown when a parameter has an invalid type on any static or instance methods.
Error object:
| Attribute | Value |
| --- | --- |
| code | `E_INVALID_PAR_TYPE` |
| name | Name of the invalid parameter |
| value | Invalid value |
| expected | Expected type |

View File

@@ -0,0 +1,11 @@
## E_INVALID_PAR_VALUE
Thrown for certain parameters when the type is correct, but the value is invalid. Currently, the only parameter with such validation is the date format (for either format and parse). Format allows [certain variants](../api/date/date-formatter.md#parameters), if it's none of them, error is thrown.
Error object:
| Attribute | Value |
| --- | --- |
| code | `E_INVALID_PAR_VALUE` |
| name | Name of the invalid parameter |
| value | Invalid value |

View File

@@ -0,0 +1,11 @@
## E_MISSING_CLDR
Thrown when any required CLDR item is NOT found.
Error object:
| Attribute | Value |
| --- | --- |
| code | `E_MISSING_CLDR` |
| path | Missing CLDR item path |

View File

@@ -0,0 +1,10 @@
## E_MISSING_PARAMETER
Thrown when a required parameter is missing on any static or instance methods.
Error object:
| Attribute | Value |
| --- | --- |
| code | `E_MISSING_PARAMETER` |
| name | Name of the missing parameter |

View File

@@ -0,0 +1,9 @@
## E_MISSING_PLURAL_MODULE
Thrown when plural module is needed, but not loaded, eg. formatting currencies using plural messages.
Error object:
| Attribute | Value |
| --- | --- |
| code | `E_MISSING_PLURAL_MODULE` |

View File

@@ -0,0 +1,11 @@
## E_PAR_MISSING_KEY
Thrown when a parameter misses a required key.
Error object:
| Attribute | Value |
| --- | --- |
| code | `E_PAR_MISSING_KEY` |
| key | Name of the missing parameter's key |
| name | Name of the missing parameter |

View File

@@ -0,0 +1,13 @@
## E_PAR_OUT_OF_RANGE
Thrown when a parameter is not within a valid range of values.
Error object:
| Attribute | Value |
| --- | --- |
| code | `E_PAR_OUT_OF_RANGE` |
| name | Name of the invalid parameter |
| value | Invalid value |
| minimum | Minimum value of the valid range |
| maximum | Maximum value of the valid range |

View File

@@ -0,0 +1,10 @@
## E_UNSUPPORTED
Thrown for unsupported features, eg. to format unsupported date patterns.
Error object:
| Attribute | Value |
| --- | --- |
| code | `E_UNSUPPORTED` |
| feature | Description of the unsupported feature |