Lines Matching refs:ErrorCode
8 * file name: errorcode.h
22 * \brief C++ API: ErrorCode class intended to make it easier to use
50 * The ErrorCode base class destructor does nothing.
58 * class IcuErrorCode: public icu::ErrorCode {
66 * log_failure(u_errorName(errorCode));
67 * exit(errorCode);
79 class U_COMMON_API ErrorCode: public UMemory {
85 ErrorCode() : errorCode(U_ZERO_ERROR) {}
87 virtual ~ErrorCode();
89 operator UErrorCode & () { return errorCode; }
91 operator UErrorCode * () { return &errorCode; }
93 UBool isSuccess() const { return U_SUCCESS(errorCode); }
95 UBool isFailure() const { return U_FAILURE(errorCode); }
97 UErrorCode get() const { return errorCode; }
99 void set(UErrorCode value) { errorCode=value; }
125 UErrorCode errorCode;