Skip to main content

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

This version

2.0

Download files

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

Files for PyErrManager, version 2.0
Filename, size File type Python version Upload date Hashes
Filename, size PyErrManager-2.0-py3-none-any.whl (5.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size PyErrManager-2.0.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page