how to give error in python code example
Example 1: throwing an exception python
raise Exception("message")
Example 2: python try except: print error
except Exception as e:
raise Exception("message")
except Exception as e: