September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
3
Task/Exceptions/Phix/exceptions-1.phix
Normal file
3
Task/Exceptions/Phix/exceptions-1.phix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
throw("oh no")
|
||||
throw(1)
|
||||
throw(501,{"she",made[me],Do(it)})
|
||||
9
Task/Exceptions/Phix/exceptions-2.phix
Normal file
9
Task/Exceptions/Phix/exceptions-2.phix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
try
|
||||
one_of(these)
|
||||
catch e
|
||||
if e[E_CODE]=501 then
|
||||
puts(1,"that's no excuse!\n")
|
||||
else
|
||||
throw(e)
|
||||
end if
|
||||
end try
|
||||
Loading…
Add table
Add a link
Reference in a new issue