pyception
A more meaningful exception's collection for Python.
Exceptions are important in Python. Throwing and handling it correctly avoid application stopping abruptly and make debug better.
- Simple and lightweight library.
- Collection inspired by frameworks and languages such as .NET, javasdk, ruby, php etc.
Feel free to open a pull request! (Please, use Jeremy Mack's commit style.)
Simple usage:
from pyception.security import PrivilegeNotHeldException
if not user.has_previlege('admin'):
raise PrivilegeNotHeldException('Not allowed.')
# instead of EnvironmentError or even Exception
Namespaces:
import pyception.application
import pyception.configuration
import pyception.collection
import pyception.data
import pyception.io
import pyception.networking
import pyception.security
import pyception.system
import pyception.text