Skip to main content

zExceptions contains common exceptions used in Zope.

Project description

Overview

zExceptions contains common exceptions and helper functions related to exceptions as used in Zope.

Changelog

4.3 (2022-12-18)

  • Sort imports with isort.

  • Add support for Python 3.11.

4.2 (2021-10-22)

  • 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)

4.1 (2018-10-05)

  • Add support for Python 3.7.

4.0 (2018-01-27)

  • Drop support for string exceptions.

3.6.1 (2017-05-17)

  • Increase Python 3 compatibility

3.6 (2017-02-05)

  • 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.

3.5 (2017-02-05)

  • 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.

3.4 (2016-09-08)

  • Use HTTPException.body_template when title and detail are set.

  • Add new title and detail attributes to HTTPException.

3.3 (2016-08-06)

  • Add exception classes for all HTTP status codes.

3.2 (2016-07-22)

  • Implement basic subset of Response features in HTTPException class.

3.1 (2016-07-22)

  • Mark exceptions with appropriate zope.publisher interfaces.

  • Add a new common base class zExceptions.HTTPException to all exceptions.

3.0 (2016-04-03)

  • Add compatibility with PyPy and Python 3.

  • Arguments to the Unauthorized exception are assumed to be utf8-encoded if they are bytes.

2.13.0 (2010-06-05)

  • Released as separate package.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zExceptions-4.3.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zExceptions-4.3-py2.py3-none-any.whl (17.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file zExceptions-4.3.tar.gz.

File metadata

  • Download URL: zExceptions-4.3.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for zExceptions-4.3.tar.gz
Algorithm Hash digest
SHA256 689a2c09b46afdda31fe4c3bc3cad262e60959c25eaf287a07520c79527087a9
MD5 d0d94165870ad760451e5583bd5b0d01
BLAKE2b-256 4824dcde412a61b9c30289a07a0357d5583074254f70aa7521c426e19be5579c

See more details on using hashes here.

File details

Details for the file zExceptions-4.3-py2.py3-none-any.whl.

File metadata

  • Download URL: zExceptions-4.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for zExceptions-4.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8224ebb7817ad9f23953d494e98e8b0c353de538f621f41ed36a89a6f39c4132
MD5 cb0ac5950bdf635c0f3a1d5e898c0053
BLAKE2b-256 fd79adc5b3e9f876e59dfc4cc5054889797af74ba83040653abf8c1ed72a6f9c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page