python why create own exceptions code example Example: create custom exception python class CustomError(Exception): pass