Exceptions/Catch an exception thrown in a nested call: Difference between revisions
Content added Content deleted
(→{{header|Elixir}}: version up (display message)) |
|||
Line 914: | Line 914: | ||
<pre> |
<pre> |
||
U0 rescued |
U0 rescued |
||
** (U1) got nil while retrieving Exception.message/1 for %U1{message: nil} (expected a string) |
|||
** (EXIT from #PID<0.48.0>) an exception was raised: |
|||
ExceptionsTest.exs:18: ExceptionsTest.baz/1 |
|||
** (ArgumentError) argument error |
|||
ExceptionsTest.exs:8: anonymous fn/1 in ExceptionsTest.foo/0 |
|||
:erlang.byte_size(nil) |
|||
(elixir) lib/enum.ex:645: Enum."-each/2-lists^foreach/1-0-"/2 |
|||
(elixir) lib/enum.ex:645: Enum.each/2 |
|||
(elixir) lib/code.ex:370: Code.require_file/2 |
|||
(elixir) lib/kernel/cli.ex:83: anonymous fn/3 in Kernel.CLI.exec_fun/2 |
|||
</pre> |
</pre> |
||
displayed message in version 1.4 |
|||
=={{header|Erlang}}== |
=={{header|Erlang}}== |