Python - Custom Exceptions
What will be printed when the following code is executed?
class CustomError(Exception):
def __init__(self, message):
self.message = message
try:
raise CustomError('Error occurred')
except CustomError as e:
print(e.message)