mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 07:33:57 +00:00
fixed try/catch section
This commit is contained in:
parent
2627624bb4
commit
0f641aed5e
@ -286,10 +286,11 @@ end
|
|||||||
error("help") # ERROR: help in error at error.jl:21
|
error("help") # ERROR: help in error at error.jl:21
|
||||||
|
|
||||||
try
|
try
|
||||||
error("my error!")
|
error("help")
|
||||||
except
|
catch e
|
||||||
println("caught it!")
|
println("caught it $e")
|
||||||
end
|
end
|
||||||
|
#=> caught it ErrorException("help")
|
||||||
|
|
||||||
|
|
||||||
####################################################
|
####################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user