Ewebmachine.Plug.ErrorAsException exception
This plug checks the current response status. If it is an error, raise a plug exception with the status code and the HTTP error name as the message. If this response body is not void, use it as the exception message.
Summary↑
call(conn, ) | |
exception(args) | Callback implementation of |
init() | |
message(exception) | Callback implementation of |
Functions
Specs:
- exception(Keyword.t) :: Exception.t
Callback implementation of Exception.exception/1
.
Specs:
- message(Exception.t) :: String.t
Callback implementation of Exception.message/1
.