17 #ifndef __ERRORCODE_H__
18 #define __ERRORCODE_H__
111 void assertSuccess()
const;
118 const char* errorName()
const;
137 #endif // __ERRORCODE_H__
#define U_SUCCESS(x)
Does the error code indicate success?
#define U_FAILURE(x)
Does the error code indicate a failure?
UBool isSuccess() const
Tests for U_SUCCESS().
void set(UErrorCode value)
Sets the UErrorCode value.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
virtual void handleFailure() const
Called by assertSuccess() if isFailure() is true.
UMemory is the common ICU base class.
UBool isFailure() const
Tests for U_FAILURE().
C++ API: Common ICU base class UObject.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
virtual ~ErrorCode()
Destructor, does nothing.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
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...
ErrorCode()
Default constructor.
Wrapper class for UErrorCode, with conversion operators for direct use in ICU C and C++ APIs...
int8_t UBool
The ICU boolean type.
UErrorCode errorCode
Internal UErrorCode, accessible to subclasses.