create a custom error type with an appropriate error message for all base*.py classes and replace the "raise ErrorType" with it.
create a custom error type with an appropriate error message for all base*.py classes and replace the "raise ErrorType" with it.