Exception: Sevn::Errors::UnauthorizedError
- Inherits:
-
StandardError
- Object
- StandardError
- Sevn::Errors::UnauthorizedError
- Defined in:
- lib/sevn/errors.rb
Instance Method Summary collapse
-
#initialize(object, action, subject) ⇒ UnauthorizedError
constructor
A new instance of UnauthorizedError.
- #message ⇒ Object
Constructor Details
#initialize(object, action, subject) ⇒ UnauthorizedError
Returns a new instance of UnauthorizedError.
37 38 39 40 41 |
# File 'lib/sevn/errors.rb', line 37 def initialize(object, action, subject) @object = object @action = action @subject = subject end |
Instance Method Details
#message ⇒ Object
43 44 45 |
# File 'lib/sevn/errors.rb', line 43 def "#{@object.inspect} is not authorized to do '#{@action}' to #{@subject.inspect}" end |