python catch raise class exception code example Example: exception pyton print except Exception as e: print(e)