Most Java code tries hard to never fail. Erlang takes the opposite view, and the idea travels better than you…