[reportlab-users] Error Log

Robin Becker robin at reportlab.com
Thu Jan 17 12:56:47 EST 2008

Brandon Rich wrote:

> I am trying to create a error log that handles exceptions that are

> thrown. Right now, I have an if, elif in place, and if neither happens,

> would like to log an error, and two, exit gracefully upon exception. I

> have not found any documentation on this and was curious if anyone could

> give an example, or point me in a direction to look at.




> Thanks


well for this sort of python coding question you can ask nicely on
comp.lang.python or perhaps on the tutor list see

Exceptions are generically handled like this

except ExceptionClass:
process exception.

ExceptionClass is some kind of exception class you want to handle; see

The if statement is described here

Robin Becker

More information about the reportlab-users mailing list