[cx-oracle-users] Extracting Oracle error codes, characterizing exceptions
Brought to you by:
atuining
From: Jeff W. <jef...@sa...> - 2004-02-16 19:45:30
|
Is there way to extract Oracle error codes other than by applying str() to the exception and parsing the string? Also, if I cannot connect to the Oracle database would that be a DatabaseError or an InternalError? I am trying to use cx_Oracle to write a server that needs to be reliable and I am trying to figure out how to handle possible exceptions returned from Oracle. I also noticed that violations of table constraints are DatabaseErrors, rather than DataErrors. Is this intended? What are examples of DataErrors? Thanks, Jeff |