Home | History | Annotate | Download | only in unicode

Lines Matching refs:ErrorCode

10 *   file name:  errorcode.h
24 * \brief C++ API: ErrorCode class intended to make it easier to use
52 * The ErrorCode base class destructor does nothing.
60 * class IcuErrorCode: public icu::ErrorCode {
68 * log_failure(u_errorName(errorCode));
69 * exit(errorCode);
81 class U_COMMON_API ErrorCode: public UMemory {
87 ErrorCode() : errorCode(U_ZERO_ERROR) {}
89 virtual ~ErrorCode();
91 operator UErrorCode & () { return errorCode; }
93 operator UErrorCode * () { return &errorCode; }
95 UBool isSuccess() const { return U_SUCCESS(errorCode); }
97 UBool isFailure() const { return U_FAILURE(errorCode); }
99 UErrorCode get() const { return errorCode; }
101 void set(UErrorCode value) { errorCode=value; }
127 UErrorCode errorCode;