Python - Custom Exceptions
What will happen when this code runs?
class CustomError(Exception):
def __init__(self, message):
self.message = message
try:
raise CustomError('Error occurred')
except CustomError as e:
print(e.message)