Add docs to error.py

fixes spotify/scalegrease#14