Packages

Persistent ETS tables backed by DETS — fast in-memory access with automatic disk persistence for the BEAM

Current section

Files

Jump to
shelf src shelf_rescue_ffi.erl
Raw

src/shelf_rescue_ffi.erl

-module(shelf_rescue_ffi).
-export([rescue/1]).
rescue(Fun) ->
try
{ok, Fun()}
catch
Class:Reason ->
{error, unicode:characters_to_binary(io_lib:format("~p:~p", [Class, Reason]))}
end.