Add exceptions.py
Add some exception throwing