We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0994270 commit a0a0c5eCopy full SHA for a0a0c5e
lib/sentry/crash_error.ex
@@ -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
11
+end
0 commit comments