python create a class with own error code example Example: create custom exception python class CustomError(Exception): pass