19 #ifndef __ERRORCODE_H__
20 #define __ERRORCODE_H__
30 #if U_SHOW_CPLUSPLUS_API
116 void assertSuccess()
const;
123 const char* errorName()
const;
144 #endif // __ERRORCODE_H__
virtual void handleFailure() const
Called by assertSuccess() if isFailure() is true.
ErrorCode()
Default constructor.
#define U_SUCCESS(x)
Does the error code indicate success?
#define U_FAILURE(x)
Does the error code indicate a failure?
void set(UErrorCode value)
Sets the UErrorCode value.
Wrapper class for UErrorCode, with conversion operators for direct use in ICU C and C++ APIs...
UErrorCode errorCode
Internal UErrorCode, accessible to subclasses.
C++ API: Common ICU base class UObject.
UBool isSuccess() const
Tests for U_SUCCESS().
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
Basic definitions for ICU, for both C and C++ APIs.
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside...
UBool isFailure() const
Tests for U_FAILURE().
UMemory is the common ICU base class.
int8_t UBool
The ICU boolean type, a signed-byte integer.