Created
June 15, 2015 21:40
-
-
Save elbow-jason/c46eb6a39f1656a2f0c7 to your computer and use it in GitHub Desktop.
try and rescue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Trier do | |
require IEx | |
def thing do | |
x = 0 | |
try do | |
1 / x | |
rescue | |
e in ArithmeticError -> | |
e | |
IEx.pry | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment