Hi,
Does the Unidac exception handler fully support the error messages PostgreSQL returns?
Please see:
http://www.postgresql.org/docs/8.3/inte ... ields.html
It's important that these error fields be surfaced to the exception handler because they contain critical informaton like the line number the error occured at etc.
Snorkel
Another PostgreSQL question
-
- Devart Team
- Posts: 925
- Joined: Thu 17 Nov 2005 10:53
For this you can use the InnerError property of the EUniError class which points (for PostgreSQL provider) to the instance of EPgError class. For example:
Code: Select all
ShowMessage((E.InnerError as EPgError).CallStack)
Ok, but will it have access to all the PgSQL error fields like line number etc?Challenger wrote:For this you can use the InnerError property of the EUniError class which points (for PostgreSQL provider) to the instance of EPgError class. For example:Code: Select all
ShowMessage((E.InnerError as EPgError).CallStack)