Catch exception in a function : Exception Handle : Exception PYTHON examples


PYTHON examples » Exception » Exception Handle »

 

Catch exception in a function


Catch exception in a function
 


def doNotRaiseException():
   try:
      print "In doNotRaiseException"
   finally:
      print "Finally executed in doNotRaiseException"
   print "End of doNotRaiseException"

print "Calling doNotRaiseException"
doNotRaiseException()

           
         
  



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Exception
» Exception Handle