Answers for "how to pass exception in python"

14

throwing an exception python

raise Exception("message")
Posted by: Guest on June-22-2020
2

python try except

try:
  val = 1/0 
except Exception as e:
  raise Exception('ZeroDivisionError')
Posted by: Guest on January-26-2021

Code answers related to "how to pass exception in python"

Python Answers by Framework

Browse Popular Code Answers by Language