Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ring raise an exception

nMode = 10

if nMode < 0 or nMode > 5
        raise("Error : nMode not in the range 1:4")
ok
Source by ring-lang.github.io #
 
PREVIOUS NEXT
Tagged: #ring #raise #exception
ADD COMMENT
Topic
Name
4+5 =