Raising WebError's
he python code to raise a WebError exception is
raise WebError (error,message), where
error and
message are plain strings. The handler eventually calls
self.generate_error_page(error,message) which generates the error page. If you need a more sophisticated exception handling check out the dictionary lookup and function call based exception handling.