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 | RSS feed

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.

Source Distribution

PyErrManager-2.0.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

PyErrManager-2.0-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

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