class Critic::AuthorizationDenied
Custom error class for authorization failures
Constants
- DEFAULT_MESSAGE
Attributes
Public Class Methods
new(authorization)
click to toggle source
Calls superclass method
# File lib/critic/authorization_denied.rb, line 8 def initialize(authorization) @authorization = authorization message = if authorization.messages.any? authorization.messages.join(',') else DEFAULT_MESSAGE end super(message) end