✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Для прикладу програмного коду, за яких умов реалізується виклик виключення з його подальшим обробленням:
-module(math).
-export([add/2]).
add(X,Y) ->
test_int(X),
test_int(Y),
X + Y.
test_int(Int) when is_integer(Int) -> true;
test_int(Int) -> throw({error, {non_integer, Int}}).