python3, demo@ubuntu~SelfStudypython3Exceptions$ CustomError py

preview_player
Показать описание
How to create custom error.

MyCustomError
Traceback (most recent call last)
raise CustomError('An error occured')
NameError name 'CustomError' is not defined