sscasc@tumkur common standard exception classes class meaning attributeerror object does not contain the specified instance variable or method importerror when import statement fails to find specified module or name indexerror sequence (liststringtupleindex is out of range keyerror specified key does not appear in dictionary nameerror specified local or global name does not exist typeerror operation or function applied to an inappropriate type valueerror operation or function applied to correct type but inappropriate value zerodivisionerror second operand of divison or modulus operation is zero try with multiple except clause try statement can have more than one except clause to handle different exceptions the statement can also have an optional else and/or finally statementin syntax like thistryexcept except exceptelsefinallythe multiple excepts are similar to elifs when an exception occursit is checked to match an exception in an except clause after the try clause sequentially if match is foundthe handler for the matching case is executed and the rest of the except clauses are skipped note that the in the last except clause may be omitted if the exception does not match any of the exception types before the last except clausethe for the last except clause is executed try statement may have an optional else clausewhich is executed if no exception is raised in the try body sp_python programming