sphinx v0.1.2 Sphinx.NotAuthorizedError exception

Raised when authorization fails.

By default, message says: “You do not have access to this resource.”. To customize it, fail in your authorizer with: {false, "reason"}.

Summary

Functions

Callback implementation for Exception.exception/1

Callback implementation for Exception.message/1

Functions

exception(msg)
exception(String.t) :: Exception.t
exception(Keyword.t) :: Exception.t

Callback implementation for Exception.exception/1.

message(exception)
message(Exception.t) :: String.t

Callback implementation for Exception.message/1.