Homec4science

Added register_exception for nicely logging a given exception with all its…

Authored by Samuele Kaplun <samuele.kaplun@cern.ch> on Oct 19 2007, 16:11.

Description

Added register_exception for nicely logging a given exception with all its contextual information. To be used as in: try: raise InvenioFooException('this is a nice message') except InvenioFooException, e: register_exception(req=req)

It automatically discover the last caught exception.

Event Timeline

Samuele Kaplun <samuele.kaplun@cern.ch> committed R3600:6895a4526a06: Added register_exception for nicely logging a given exception with all its… (authored by Samuele Kaplun <samuele.kaplun@cern.ch>).Oct 19 2007, 16:11