Python - Custom Exceptions
What will happen when this code runs?
class CustomError(Exception):
pass
def func():
raise CustomError('Error occurred')
try:
func()
except Exception as e:
print('Caught:', e)