Add error.py for common error classes