logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Re: [psycopg] #13: Including error code in error message: msg#00052

Subject: Re: Re: [psycopg] #13: Including error code in error message
psycopg <fog-NGVKUo/i/6DYtjvyW6yDsg@xxxxxxxxxxxxxxxx> writes:

[...]
>  Interesting. I don't like that much to have the error code in the message
>  but until I find a better place to put it the message will be fine.

can't we have the error code in an attribute of the exception object,
or as part of the args list? (for example, IOError has additional
attributes filename, strerror and errno, and args is (errno,
strerror)).

If I misunderstood something please ignore this post, I didn't follow
the discussion closely :-)

ciao
Andreas


<Prev in Thread] Current Thread [Next in Thread>