Exception: Spikard::Errors::ForbiddenError

Inherits:
Error
  • Object
show all
Defined in:
lib/spikard/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#problem_details_type, #status_code

Instance Method Summary collapse

Methods inherited from Error

#to_problem_details

Constructor Details

#initialize(message = nil) ⇒ ForbiddenError

Raised when the authenticated user lacks permission for the requested action.



47
48
49
# File 'lib/spikard/errors.rb', line 47

def initialize(message = nil)
  super(message, status_code: 403, problem_details_type: nil)
end