Home | History | Annotate | Download | only in webapp2

Lines Matching refs:exception

60 #: Base HTTP exception, set here as public interface.
352 - ``response.headers`` raises an exception when a key that doesn't exist
571 except Exception, e:
588 This stops code execution, leaving the HTTP exception to be handled
589 by an exception handler.
594 Positional arguments to be passed to the exception class.
596 Keyword arguments to be passed to the exception class.
629 def handle_exception(self, exception, debug):
630 """Called if this handler throws an exception during execution.
632 The default behavior is to re-raise the exception to be handled by
635 :param exception:
636 The exception that was thrown.
1090 except Exception, e:
1349 Exception, when a required key is not set or is None.
1374 raise Exception(
1420 This release the context locals except if an exception is caught
1520 optional exception context to start the response.
1533 except Exception, e:
1540 # Use the HTTP exception as response.
1542 except Exception, e:
1548 except Exception, e:
1551 def _internal_error(self, exception):
1553 logging.exception(exception)
1562 """Handles a uncaught exception occurred in :meth:`__call__`.
1567 If the exception is not an ``HTTPException``, the status code 500
1570 The error handlers receive (request, response, exception) and can be
1573 If no error handler is found, the exception is re-raised.
1582 The uncaught exception.
1657 Original exception:
1666 class ImportStringError(Exception):
1671 #: Wrapped exception.
1672 exception = None
1674 def __init__(self, import_name, exception):
1676 self.exception = exception
1688 msg = msg % (import_name, exception.__class__.__name__,
1689 str(exception), '\n'.join(track))
1692 Exception.__init__(self, msg)
1750 If True, raises an exception to perform the redirect.
1823 Positional arguments to instantiate the exception.
1825 Keyword arguments to instantiate the exception.
1829 raise KeyError('No exception is defined for code %r.' % code)
1843 instead of raising an exception.