Maru v0.9.5 Maru.Exceptions.NotFound exception

Raised when request path don’t match any router. Catch this exception and return 404 like this:

rescue_from Maru.Exceptions.NotFound do
  status 404
  "Not Found"
end

Summary

Functions

Callback implementation for c:Exception.exception/1

Callback implementation for c:Exception.message/1

Functions

exception(args)

Specs

exception(Keyword.t) :: Exception.t

Callback implementation for c:Exception.exception/1.

message(e)

Callback implementation for c:Exception.message/1.