ivankosenko / open-vcdiff

Automatically exported from code.google.com/p/open-vcdiff
Apache License 2.0
0 stars 0 forks source link

Return error codes from calls to decoder/encoder #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently the encoder and decoder methods return only a Boolean value to
indicate success or failure.  Error log messages, which indicate the reason
for each failure, are sent to standard error output.  Diagnosis of failures
depends on having access to this error output.

Proposal: Expand the interface to return one of a number of error codes,
rather than just false in the error case.

Additional proposal: Most of the error log messages include parameters for
interesting values that help to explain the error.  If each error code is
encapsulated with its parameters, the error messages can be placed into a
message catalog, which will allow internationalization of log messages and
will reduce the sizes of the encoder and decoder libraries.

Original issue reported on code.google.com by openvcd...@gmail.com on 12 Sep 2008 at 4:55