Debian Codegraph @

intl/icu_capi/bindings/js/ICU4XError.d.ts

raw
1
2 /**
3
4 * A common enum for errors that ICU4X may return, organized by API
5
6 * The error names are stable and can be checked against as strings in the JS API
7
8 * Additional information: {@link https://docs.rs/fixed_decimal/latest/fixed_decimal/enum.FixedDecimalError.html 1}, {@link https://docs.rs/icu/latest/icu/calendar/enum.CalendarError.html 2}, {@link https://docs.rs/icu/latest/icu/collator/enum.CollatorError.html 3}, {@link https://docs.rs/icu/latest/icu/datetime/enum.DateTimeError.html 4}, {@link https://docs.rs/icu/latest/icu/decimal/enum.DecimalError.html 5}, {@link https://docs.rs/icu/latest/icu/list/enum.ListError.html 6}, {@link https://docs.rs/icu/latest/icu/locid/enum.ParserError.html 7}, {@link https://docs.rs/icu/latest/icu/locid_transform/enum.LocaleTransformError.html 8}, {@link https://docs.rs/icu/latest/icu/normalizer/enum.NormalizerError.html 9}, {@link https://docs.rs/icu/latest/icu/plurals/enum.PluralsError.html 10}, {@link https://docs.rs/icu/latest/icu/properties/enum.PropertiesError.html 11}, {@link https://docs.rs/icu/latest/icu/provider/struct.DataError.html 12}, {@link https://docs.rs/icu/latest/icu/provider/enum.DataErrorKind.html 13}, {@link https://docs.rs/icu/latest/icu/segmenter/enum.SegmenterError.html 14}, {@link https://docs.rs/icu/latest/icu/timezone/enum.TimeZoneError.html 15}, {@link https://docs.rs/icu_experimental/latest/icu_experimental/units/enum.ConversionError.html 16}
9 */
10 export enum ICU4XError {
11 /**
12
13 * The error is not currently categorized as ICU4XError. Please file a bug
14 */
15 UnknownError = 'UnknownError',
16 /**
17
18 * An error arising from writing to a string Typically found when not enough space is allocated Most APIs that return a string may return this error
19 */
20 WriteableError = 'WriteableError',
21 /**
22
23 * Some input was out of bounds
24 */
25 OutOfBoundsError = 'OutOfBoundsError',
26 /**
27
28 * Input expected to be UTF-8 was ill-formed
29 */
30 Utf8Error = 'Utf8Error',
31 /**
32 */
33 DataMissingDataKeyError = 'DataMissingDataKeyError',
34 /**
35 */
36 DataMissingVariantError = 'DataMissingVariantError',
37 /**
38 */
39 DataMissingLocaleError = 'DataMissingLocaleError',
40 /**
41 */
42 DataNeedsVariantError = 'DataNeedsVariantError',
43 /**
44 */
45 DataNeedsLocaleError = 'DataNeedsLocaleError',
46 /**
47 */
48 DataExtraneousLocaleError = 'DataExtraneousLocaleError',
49 /**
50 */
51 DataFilteredResourceError = 'DataFilteredResourceError',
52 /**
53 */
54 DataMismatchedTypeError = 'DataMismatchedTypeError',
55 /**
56 */
57 DataMissingPayloadError = 'DataMissingPayloadError',
58 /**
59 */
60 DataInvalidStateError = 'DataInvalidStateError',
61 /**
62 */
63 DataCustomError = 'DataCustomError',
64 /**
65 */
66 DataIoError = 'DataIoError',
67 /**
68 */
69 DataUnavailableBufferFormatError = 'DataUnavailableBufferFormatError',
70 /**
71 */
72 DataMismatchedAnyBufferError = 'DataMismatchedAnyBufferError',
73 /**
74
75 * The subtag being requested was not set
76 */
77 LocaleUndefinedSubtagError = 'LocaleUndefinedSubtagError',
78 /**
79
80 * The locale or subtag string failed to parse
81 */
82 LocaleParserLanguageError = 'LocaleParserLanguageError',
83 /**
84 */
85 LocaleParserSubtagError = 'LocaleParserSubtagError',
86 /**
87 */
88 LocaleParserExtensionError = 'LocaleParserExtensionError',
89 /**
90
91 * Attempted to construct an invalid data struct
92 */
93 DataStructValidityError = 'DataStructValidityError',
94 /**
95 */
96 PropertyUnknownScriptIdError = 'PropertyUnknownScriptIdError',
97 /**
98 */
99 PropertyUnknownGeneralCategoryGroupError = 'PropertyUnknownGeneralCategoryGroupError',
100 /**
101 */
102 PropertyUnexpectedPropertyNameError = 'PropertyUnexpectedPropertyNameError',
103 /**
104 */
105 FixedDecimalLimitError = 'FixedDecimalLimitError',
106 /**
107 */
108 FixedDecimalSyntaxError = 'FixedDecimalSyntaxError',
109 /**
110 */
111 PluralsParserError = 'PluralsParserError',
112 /**
113 */
114 CalendarParseError = 'CalendarParseError',
115 /**
116 */
117 CalendarOverflowError = 'CalendarOverflowError',
118 /**
119 */
120 CalendarUnderflowError = 'CalendarUnderflowError',
121 /**
122 */
123 CalendarOutOfRangeError = 'CalendarOutOfRangeError',
124 /**
125 */
126 CalendarUnknownEraError = 'CalendarUnknownEraError',
127 /**
128 */
129 CalendarUnknownMonthCodeError = 'CalendarUnknownMonthCodeError',
130 /**
131 */
132 CalendarMissingInputError = 'CalendarMissingInputError',
133 /**
134 */
135 CalendarUnknownKindError = 'CalendarUnknownKindError',
136 /**
137 */
138 CalendarMissingError = 'CalendarMissingError',
139 /**
140 */
141 DateTimePatternError = 'DateTimePatternError',
142 /**
143 */
144 DateTimeMissingInputFieldError = 'DateTimeMissingInputFieldError',
145 /**
146 */
147 DateTimeSkeletonError = 'DateTimeSkeletonError',
148 /**
149 */
150 DateTimeUnsupportedFieldError = 'DateTimeUnsupportedFieldError',
151 /**
152 */
153 DateTimeUnsupportedOptionsError = 'DateTimeUnsupportedOptionsError',
154 /**
155 */
156 DateTimeMissingWeekdaySymbolError = 'DateTimeMissingWeekdaySymbolError',
157 /**
158 */
159 DateTimeMissingMonthSymbolError = 'DateTimeMissingMonthSymbolError',
160 /**
161 */
162 DateTimeFixedDecimalError = 'DateTimeFixedDecimalError',
163 /**
164 */
165 DateTimeMismatchedCalendarError = 'DateTimeMismatchedCalendarError',
166 /**
167 */
168 TinyStrTooLargeError = 'TinyStrTooLargeError',
169 /**
170 */
171 TinyStrContainsNullError = 'TinyStrContainsNullError',
172 /**
173 */
174 TinyStrNonAsciiError = 'TinyStrNonAsciiError',
175 /**
176 */
177 TimeZoneOffsetOutOfBoundsError = 'TimeZoneOffsetOutOfBoundsError',
178 /**
179 */
180 TimeZoneInvalidOffsetError = 'TimeZoneInvalidOffsetError',
181 /**
182 */
183 TimeZoneMissingInputError = 'TimeZoneMissingInputError',
184 /**
185 */
186 TimeZoneInvalidIdError = 'TimeZoneInvalidIdError',
187 /**
188 */
189 NormalizerFutureExtensionError = 'NormalizerFutureExtensionError',
190 /**
191 */
192 NormalizerValidationError = 'NormalizerValidationError',
193 /**
194 */
195 InvalidCldrUnitIdentifierError = 'InvalidCldrUnitIdentifierError',
196 }