# Starting example file demonstrating exceptions for Learning Julia

# Exceptions provide a way for a program to handle one or more 
# unexpected conditions

arg = -9

# the try / catch / finally construct is used to work with exceptions
try
    x = sqrt(arg)
    println(x)
catch exception
    println(exception)
finally
    println("This section of code always runs")
end
