Custom Exception

When Jatin sir didn’t mention Exception for creating a custom exception, it showed exceptions must derived from BaseException but when I did the same thing, it showed AttributeError: ‘TypeError’ object has no attribute ‘message’.
What would be the reason for this?