How do I use exception handling ?

Asked by mady

sorry for the example,

....
import PySQLPool
connection = PySQLPool.getNewConnection(username='root', password='123456', host='localhost', db='mydb')
query = PySQLPool.getNewQuery(connection)
try
   query.Query('select * from table')
   for row in query.record:
     print row['column']
except Exception, e :
   ...

Do you have any exception class for the module that can I use instead of the generic "Exception" class

Question information

Language:
English Edit question
Status:
Solved
For:
PySQLPool Edit question
Assignee:
Nikoleta Verbeck Edit question
Last query:
Last reply:
Revision history for this message
Nikoleta Verbeck (nerdynick) said :
#1

I'm going to close this 1 out real fast and answer your question against your 1st question. #97429

Revision history for this message
Nikoleta Verbeck (nerdynick) said :
#2

Ref Answer/Question # 97429