ShriRam Changed status to publish August 21, 2023
def functionName( level ):
if level <1:
raise Exception(level)
# The code below to this would not be executed
# if we raise the exception
return level
try:
l = functionName(-1)
print ("level = ",l)
except Exception as e:
print ("error in level argument",e.args[0])
ShriRam Changed status to publish August 21, 2023