|
ICU4X
International Components for Unicode
|
#include <stdint.h>#include <stddef.h>#include <stdbool.h>#include <algorithm>#include <memory>#include <variant>#include <optional>#include "diplomat_runtime.hpp"#include "ICU4XError.h"Go to the source code of this file.
|
strong |
A common enum for errors that ICU4X may return, organized by API
The error names are stable and can be checked against as strings in the JS API
Additional information: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
| Enumerator | |
|---|---|
| UnknownError | The error is not currently categorized as ICU4XError. Please file a bug |
| WriteableError | 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 |
| OutOfBoundsError | Some input was out of bounds |
| Utf8Error | Input expected to be UTF-8 was ill-formed |
| DataMissingDataKeyError | |
| DataMissingVariantError | |
| DataMissingLocaleError | |
| DataNeedsVariantError | |
| DataNeedsLocaleError | |
| DataExtraneousLocaleError | |
| DataFilteredResourceError | |
| DataMismatchedTypeError | |
| DataMissingPayloadError | |
| DataInvalidStateError | |
| DataCustomError | |
| DataIoError | |
| DataUnavailableBufferFormatError | |
| DataMismatchedAnyBufferError | |
| LocaleUndefinedSubtagError | The subtag being requested was not set |
| LocaleParserLanguageError | The locale or subtag string failed to parse |
| LocaleParserSubtagError | |
| LocaleParserExtensionError | |
| DataStructValidityError | Attempted to construct an invalid data struct |
| PropertyUnknownScriptIdError | |
| PropertyUnknownGeneralCategoryGroupError | |
| PropertyUnexpectedPropertyNameError | |
| FixedDecimalLimitError | |
| FixedDecimalSyntaxError | |
| PluralsParserError | |
| CalendarParseError | |
| CalendarOverflowError | |
| CalendarUnderflowError | |
| CalendarOutOfRangeError | |
| CalendarUnknownEraError | |
| CalendarUnknownMonthCodeError | |
| CalendarMissingInputError | |
| CalendarUnknownKindError | |
| CalendarMissingError | |
| DateTimePatternError | |
| DateTimeMissingInputFieldError | |
| DateTimeSkeletonError | |
| DateTimeUnsupportedFieldError | |
| DateTimeUnsupportedOptionsError | |
| DateTimeMissingWeekdaySymbolError | |
| DateTimeMissingMonthSymbolError | |
| DateTimeFixedDecimalError | |
| DateTimeMismatchedCalendarError | |
| TinyStrTooLargeError | |
| TinyStrContainsNullError | |
| TinyStrNonAsciiError | |
| TimeZoneOffsetOutOfBoundsError | |
| TimeZoneInvalidOffsetError | |
| TimeZoneMissingInputError | |
| TimeZoneInvalidIdError | |
| NormalizerFutureExtensionError | |
| NormalizerValidationError | |
| InvalidCldrUnitIdentifierError | |