On Wed September 30 2009 04:23:03 Mariano Martinez Peck wrote: > Sorry, but I think the best thing is that I tell you my current problem: > I don't remember C++ (I just programmed only once a couple of years ago) > but in several object oriented languages, there is the concept of error > handling using exceptions. And of course, this is the case of Smalltalk. I > hope you know what exceptions are so that you can understand what I need.
The libopendbxplus library written in C++ also uses exceptions for error handling. > The thing is that from my code (SqueakDBX) or even from the user of > SqueakDBX I would like to do a certain action depending on the error I got. > But right now, I have no way to identify uniquely an error. The only thing > I can do is to obtain a -1 and then the description. But I don't want to > depend on that to identify a particular error type. Because if tomorrow > the description change....So, what I would love is to uniquely identify an > error in ALL of the OpenDBX library. Something like this: > > Error code | Error number | Description > NO_MEMORY | 0 | There is no memory left > LIBRARY_OPEN | 1 | OpenDBX could load the library backend > ..... | .... | .... This is already the case but not for backend errors as they are depending on many external things. Norbert -- OpenPGP public key http://www.linuxnetworks.de/norbert.pubkey.asc
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf
_______________________________________________ libopendbx-devel mailing list libopendbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libopendbx-devel http://www.linuxnetworks.de/doc/index.php/OpenDBX