zExceptions contains common exceptions used in Zope.
zExceptions contains common exceptions and helper functions related to exceptions as used in Zope.
Drop support for Python 2.7, 3.5, 3.6.
Sort imports with isort.
Add support for Python 3.11.
Add support for Python 3.8, 3.9 and 3.10.
Drop support for Python 3.4.
Add an exception for the HTTP status code 418.
Don’t override the content-type header if already set. (#12)
Add support for Python 3.7.
Drop support for string exceptions.
Increase Python 3 compatibility
Add realm as an argument to unauthorized exceptions, its presence causing a WWW-Authenticate header to be emitted.
Set location header during __init__ of redirect exceptions.
Drop support for Python 3.3, add support for Python 3.6.
Use str(self) as detail if it is not set.
Add a setHeader method to add a response header to an HTTPException.
upgradeException now also supports finding an HTTPException class with the same name as a non-HTTPException class.
Use HTTPException.body_template when title and detail are set.
Add new title and detail attributes to HTTPException.
Add exception classes for all HTTP status codes.
Implement basic subset of Response features in HTTPException class.
Mark exceptions with appropriate zope.publisher interfaces.
Add a new common base class zExceptions.HTTPException to all exceptions.
Add compatibility with PyPy and Python 3.
Arguments to the Unauthorized exception are assumed to be utf8-encoded if they are bytes.
Released as separate package.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for zExceptions-5.0-py3-none-any.whl