Re-raise the exception : Exception Raise « Exception « Python





Re-raise the exception

Re-raise the exception

try:
     raise NameError, 'HiThere'
except NameError:
     print 'An exception flew by!'
     raise


           
       










Related examples in the same category

1.Raising ExceptionsRaising Exceptions