Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python raise exception

	# this raises a "NameError"

>>> raise NameError('HiThere')

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: HiThere
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #python #raise #exception
ADD COMMENT
Topic
Name
2+9 =