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 hashes)
Built Distribution
Close
Hashes for PyErrManager-2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d4c80c8f50fa121b7cf629789d1fb95f19de5b3f4b8503f878e00759cfce35c |
|
MD5 | 86871c26808b822528ce237dbae1db73 |
|
BLAKE2b-256 | a45ea779659d1a4b63ce259940f00a8b1b6e0e9ae4e462cf4bbcbb9c7de717a4 |