Advertisements
Advertisements
प्रश्न
Define the following:
Catching an exception
टिप्पणी लिखिए
Advertisements
उत्तर
Catching an exception means handling of an exception by exception handlers. An exception is said to be caught when a code that is designed to handle a particular exception is executed. Exceptions, if any, are caught in the try block and handled in the except block.
try:
statements
except Exception_Name:
statements for handling exceptionshaalaa.com
Handling Exceptions in Python
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
