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.

Source

Summary

call(conn, )
exception(args)

Callback implementation of Exception.exception/1

init()
message(exception)

Callback implementation of Exception.message/1

Functions

call(conn, )
Source
exception(args)

Specs:

Callback implementation of Exception.exception/1.

Source
init()
Source
message(exception)

Specs:

Callback implementation of Exception.message/1.

Source