Go to the documentation of this file.
19 #ifndef __ERRORCODE_H__
20 #define __ERRORCODE_H__
30 #if U_SHOW_CPLUSPLUS_API
144 #endif // __ERRORCODE_H__
virtual ~ErrorCode()
Destructor, does nothing.
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.
UErrorCode reset()
Returns the UErrorCode value and resets it to U_ZERO_ERROR.
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
Standard ICU4C error code type, a substitute for exceptions.
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.
void assertSuccess() const
Asserts isSuccess().
#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.
const char * errorName() const
Return a string for the UErrorCode value.
void set(UErrorCode value)
Sets the UErrorCode value.
C++ API: Common ICU base class UObject.