UError
UError is the error-reporting mechanism used by the ICU library, and is commonly referred to by the type name UErrorCode in the API. The UErrorCode type is defined as a 32-bit integer used to communicate success or failure from ICU functions across modules such as text boundaries, collation, transliteration, and data loading.
In ICU usage, starting status variables are initialized to U_ZERO_ERROR, which represents no error. As operations
Common UErrorCode values include U_ZERO_ERROR, U_ILLEGAL_ARGUMENT_ERROR, U_INDEX_OUTOFBOUNDS_ERROR, U_MEMORY_ALLOCATION_ERROR, U_FILE_ACCESS_ERROR, and U_INTERNAL_ERROR, among others. The exact numeric
Best practices include passing a UErrorCode status by reference to functions that may fail, checking after
See also: ICU, u_errorName, UErrorCode, U_ZERO_ERROR, U_SUCCESS, U_FAILURE.