Ticket #6483 (new enhancement)

SVN Diffs for #6483

 

Opened 3 weeks ago

ICU C++ ErrorCode class

Reported by: markus Assigned to: markus
Priority: minor Milestone: 4.2
Component: others Version:
Keywords: Cc:
Load: Xref:
Java Version: Operating System:
Project (C/J): ICU4C Weeks: 0.4
Review:

Description

Make ICU4C easier to use from C++: Add an ErrorCode base class that wraps a UErrorCode, has conversion operators to UErrorCode* and UErrorCode& (or access functions with short names) and other utility functions. The destructor should call a virtual handleFailure(UErrorCode error) if appropriate. ICU applications would subclass icu::ErrorCode and their handleFailure() would throw an exception or whatever.

Attachments


Add/Change #6483 (ICU C++ ErrorCode class)




Anti spam check: