Skip to content

Commit a0a0c5e

Browse files
committed
add sentry crash error module
1 parent 0994270 commit a0a0c5e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/sentry/crash_error.ex

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
defmodule Sentry.CrashError do
2+
defexception [:message]
3+
4+
def exception({:nocatch, reason}) do
5+
%Sentry.CrashError{message: Exception.format_banner(:throw, reason, [])}
6+
end
7+
8+
def exception(reason) do
9+
%Sentry.CrashError{message: Exception.format_banner(:exit, reason, [])}
10+
end
11+
end

0 commit comments

Comments
 (0)