1defmodule Dialyzer.Try do 2 def rescue_error do 3 try do 4 :erlang.error(:badarg) 5 rescue 6 e in ErlangError -> {:ok, e} 7 end 8 end 9end 10