two error code questions


Subject: two error code questions
From: sam th (sam@bur-jud-118-039.rh.uchicago.edu)
Date: Mon Jan 17 2000 - 06:34:58 CST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In my quest to give abiword the most informative error messages around, I
have come upon the following issue. Some function (for example
IE_ImpGraphic) already return informative results (as in NOT UT_Bool) but
they are in a format and type specific to that class of functions. This
poses a problem for good error handling, as can be seen by reading
fileInsertGraphic (in ap_EditMethods.cpp). My proposed solution to this
problem (which I have already written) is to create a new function
(currently called toErrorCode) to convert these into UT_ErrorCode form. I
have two questions with regard to this:

first, is this the appropriate strategy? the other obvious alternative is
to edit IE_ImpGraphic and others to return UT_ErrorCode. other ideas are
also welcome.

second, and less interestingly, where should I put this function? I have
yet to discover any obvious candidates. one option is to create a
ut_types.cpp file for it. other suggestions from people with knowledge of
the make system are very welcome (and hoped for).

thanks

           
                                     sam th
                                     sytobinh@uchicago.edu
                                        
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE4gwx0t+kM0Mq9M/wRAuvYAJ9eN6gWOfBWgDHLPbx9cLVkgokQywCghUij
9gXWgI9NHm0FQmrm045OJLI=
=eHwm
-----END PGP SIGNATURE-----



This archive was generated by hypermail 2b25 : Mon Jan 17 2000 - 06:35:04 CST