mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-14 18:55:00 +02:00
fixed try/catch section
This commit is contained in:
@@ -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")
|
||||||
|
|
||||||
|
|
||||||
####################################################
|
####################################################
|
||||||
|
Reference in New Issue
Block a user