Rethrow some exceptions to fix class.

This way, the error message will show the called class instead of the
class used internally.