Go to the documentation of this file.
19 #ifndef __ERRORCODE_H__
20 #define __ERRORCODE_H__
113 void assertSuccess()
const;
120 const char* errorName()
const;
139 #endif // __ERRORCODE_H__
Wrapper class for UErrorCode, with conversion operators for direct use in ICU C and C++ APIs.
Basic definitions for ICU, for both C and C++ APIs.
int8_t UBool
The ICU boolean type.
UErrorCode errorCode
Internal UErrorCode, accessible to subclasses.
#define U_FAILURE(x)
Does the error code indicate a failure?
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
ErrorCode()
Default constructor.
UMemory is the common ICU base class.
UBool isFailure() const
Tests for U_FAILURE().
UBool isSuccess() const
Tests for U_SUCCESS().
@ U_ZERO_ERROR
No error, no warning.
#define U_SUCCESS(x)
Does the error code indicate success?
UErrorCode get() const
Returns the UErrorCode value.
virtual void handleFailure() const
Called by assertSuccess() if isFailure() is true.
void set(UErrorCode value)
Sets the UErrorCode value.
C++ API: Common ICU base class UObject.
#define U_NAMESPACE_BEGIN