Re: enhanced error fields - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: enhanced error fields
Date
Msg-id 50DE03D0.4000309@gmx.net
Whole thread Raw
In response to Re: enhanced error fields  (Peter Geoghegan <peter@2ndquadrant.com>)
Responses Re: enhanced error fields
Re: enhanced error fields
List pgsql-hackers
On 12/28/12 2:03 PM, Peter Geoghegan wrote:
> Are you aware of any popular programming language that provides this
> kind of information? Can you tell in a well-principled way what
> function a Python exception originated from, for example? These are
> the built-in Python 2 exception classes:
> 
> http://docs.python.org/2/library/exceptions.html
> 
> None of the Python built-in exception types have this kind of
> information available from fields or anything.

Sure, OSError has a filename attribute (which I'm sure is qualified by a
directory name if necessary), SyntaxError has filename, lineno, etc.

OSError.filename is essentially the equivalent of what is being proposed
here.



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: enhanced error fields
Next
From: Peter Geoghegan
Date:
Subject: Re: enhanced error fields