Conform to PEP-0008: use Error for custom exceptions.

Fixes #5.