Exceptions - exception handling in python PDF

Title Exceptions - exception handling in python
Author brinder jit
Course PYTHON
Institution Lovely Professional University
Pages 1
File Size 119.5 KB
File Type PDF
Total Downloads 56
Total Views 141

Summary

exception handling in python...


Description

EXCEPTIONS

Exception ArithmeticError OverflowError

Description Generated due to mathematical calculations When maximum limit of numeric type is exceeded during calculation FloatingPointError When floating point calculation cannot be performed AssertionError When assert statement fails AttributeError When attribute reference or assignment fails EOFError When end of file is reached ImportError When Import statement fails KeyboardInterrupt When user interrupts program execution (by Ctrl+C) IndexError When an index is not found in a sequence KeyError When key is not found in dictionary NameError When identifier is not found in local or global namespace UnboundLocalError, When an attempt is made to access local variable in function or method when no value has been assigned to it Environment Error IOError When I/O operation fails SyntaxError When there is syntax error in program IndentationError When there is indentation error in program SystemError When internal system error occurs ValueError When arguments passed to function are of invalid data type RuntimeError When generated error does not fall in any category TypeError When two or more data types are mixed without coercion...


Similar Free PDFs