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 69346f3 commit f3ba7f8Copy full SHA for f3ba7f8
dev.exs
@@ -77,7 +77,10 @@ defmodule ErrorTrackerDevWeb.PageController do
77
78
def call(_conn, :exception) do
79
ErrorTracker.add_breadcrumb("ErrorTrackerDevWeb.PageController.exception")
80
- raise "This is a controller exception"
+
81
+ raise CustomException,
82
+ message: "This is a controller exception",
83
+ bread_crumbs: ["First", "Second"]
84
end
85
86
def call(_conn, :exit) do
@@ -92,6 +95,10 @@ defmodule ErrorTrackerDevWeb.PageController do
92
95
93
96
94
97
98
+defmodule CustomException do
99
+ defexception [:message, :bread_crumbs]
100
+end
101
102
defmodule ErrorTrackerDevWeb.ErrorView do
103
def render("404.html", _assigns) do
104
"This is a 404"
0 commit comments