Psychology, asked by pranjal9102007, 5 months ago

how to create user defined or custom exception​ in python

Answers

Answered by s1266aakansha782696
2

Hey mate ,

In Python, users can define custom exceptions by creating a new class. This exception class has to be derived, either directly or indirectly, from the built-in Exception class.

Hope it helps.

Answered by Anonymous
7

In Python, users can define custom exceptions by creating a new class. This exception class has to be derived, either directly or indirectly, from the built-in Exception class....

(*_*)........ thank you...plz follow me....

Similar questions