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.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.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

zExceptions-4.0-py2.py3-none-any.whl (17.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: zExceptions-4.0.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zExceptions-4.0.tar.gz
Algorithm Hash digest
SHA256 e585f36ec5cdd8b6eb2ee2bbff25a586e219004103e76d5323cf3dea7ef983fb
MD5 1c354c54f572aa872f8bda19eda292cc
BLAKE2b-256 3c3a1cc3efa0191d44e743a3f725556d1228b58651f80252642ec0855267a4b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zExceptions-4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f97f91370bc6c14e0c2e498ffc5fded8a973d114f3c1d823f35dde5715f6cb0d
MD5 21ed6d75b3f98cde924ca23725f3c96e
BLAKE2b-256 6dbabe3c5f830aac868fa8ef3cb160e78854121da2359bd699f6ad1a8f94b80e

See more details on using hashes here.

Supported by

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