Skip to main content

hed_exceptions

Set of custom exceptions aimed to reduce typing.

Details

I wander why Python is lacking similar builtin types...

Catalog

  • ArgumentError

      def charge(me):
          raise ArgumentError("me")
    
      def recharge(me):  
          raise ArgumentError("me", "Plug not found!")
      ...
      charge("money") 
      # ArgumentError('Bad arg!', Arg(name='me', type=<class 'str'>, value='money'))
      ...
      recharge("battery")
      # ArgumentError('Plug not found!', Arg(name='me', type=<class 'str'>, value='battery'))
    

Dependencies

  • None

Installation

pip install hed_exceptions

Metadata

Release files for hed-exceptions 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hed-exceptions 0.0.4
File Size Uploaded Provenance
hed_exceptions-0.0.4.tar.gz 4.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hed-exceptions 0.0.4
File Interpreter ABI Platform
hed_exceptions-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / hed_exceptions-0.0.4.tar.gz

Download URL hed_exceptions-0.0.4.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e1d675f23165cb70a3df640c71023fb2958a89106de2e6d848eb96513daa6e81
BLAKE2b-256 checksum
How to use checksums
0819ddd48c23eb5dd06b59a7039a868357ddf6f596c9fa5dcf1f46f40a2287d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

Release files / hed_exceptions-0.0.4-py3-none-any.whl

Download URL hed_exceptions-0.0.4-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9dcb2b089e2ac4e231ed21cb65c1c7f92841b460f6c34acf3033dbd89bc5fe2
BLAKE2b-256 checksum
How to use checksums
01354c47b34dbecb425554088bf9562e721e92179e57c63239395328c139cb79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

Security for hed-exceptions 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page