Thread: Error code.

Error code.

From
"Anagha Joshi"
Date:

Hi,

Is there any way to get error code from ‘PgDatabse::Exec’ call? PgDatabase::ErrorMessage() explains error message finely.

i.e. if errorMessage() calls returns string like : ‘cannot extend trap: No space left on device’

then  can I get error code which explains the same ?

else I’ll have to use ‘strcmp’(C++ client interface) to find when device is out of space.

 

Urgent help needed.

 

Thx,

Anagha