Exception management package
Project description
PyError
Exception management package
This package allows you to quickly create and manage exceptions
Installation
pip install PyErrManager
Example
from pyerror.templates import TypeError
def add(a,b):
if type(a) != int or type(b) != int:
TypeError.unsupported_operand_types('+',a.__class__.__name__,b.__class__.__name__)(end=-1);
return a+b;
print(add(1,2))
print(add('1',2))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PyErrManager-2.0.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file PyErrManager-2.0.tar.gz
.
File metadata
- Download URL: PyErrManager-2.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b6d34e551fdaf2574f95e676cc8b34e44e6057f355372e6d12d4ab621a8a8b2 |
|
MD5 | 874f128520ee19125f338b7803706894 |
|
BLAKE2b-256 | c0b443326faa132bf7a8c34fef38f67def09011a3aeeebc79466120b32c387f7 |
File details
Details for the file PyErrManager-2.0-py3-none-any.whl
.
File metadata
- Download URL: PyErrManager-2.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d4c80c8f50fa121b7cf629789d1fb95f19de5b3f4b8503f878e00759cfce35c |
|
MD5 | 86871c26808b822528ce237dbae1db73 |
|
BLAKE2b-256 | a45ea779659d1a4b63ce259940f00a8b1b6e0e9ae4e462cf4bbcbb9c7de717a4 |