Re: [opendbx] Newbie questions about error handling

2009-10-01 Thread Norbert Sendetzky
Hi Marino Suppose I want to map from OpenDBX errors to SqueakDBX exceptions, I have to do it with the index of the array then. So, if you then change, reorder or whatever you do with the array, I will map wrong exceptions :( That won't happen until 2.0 as I would break binary compatibility

Re: [opendbx] Newbie questions about error handling

2009-10-01 Thread Norbert Sendetzky
Hi Mariano Why you think that is a bad idea? Don't you need (sometimes) to distinguish between one error and others? for example, don't you need to do or not to do something depending on the error you received ? Ok, you can have the error number as an instance variable and then use a switch

Re: [opendbx] Newbie questions about error handling

2009-10-01 Thread Mariano Martinez Peck
On Thu, Oct 1, 2009 at 2:31 PM, Norbert Sendetzky norb...@linuxnetworks.dewrote: Hi Mariano Why you think that is a bad idea? Don't you need (sometimes) to distinguish between one error and others? for example, don't you need to do or not to do something depending on the error you