Module: RapidApi::ActionController::Errors

Extended by:
ActiveSupport::Concern
Included in:
ResourceActions
Defined in:
lib/rapid_api/action_controller/errors.rb

Defined Under Namespace

Modules: ClassMethods Classes: NotProcessableError

Constant Summary collapse

NotAuthorizedError =
Class.new StandardError
NotFoundError =
Class.new StandardError

Instance Method Summary collapse

Instance Method Details

#not_authorized!Object

Raises:



26
27
28
# File 'lib/rapid_api/action_controller/errors.rb', line 26

def not_authorized!
  raise NotAuthorizedError
end

#not_found!Object

Raises:



30
31
32
# File 'lib/rapid_api/action_controller/errors.rb', line 30

def not_found!
  raise NotFoundError
end

#not_processable!(errors) ⇒ Object



34
35
36
# File 'lib/rapid_api/action_controller/errors.rb', line 34

def not_processable!(errors)
  raise NotProcessableError.new(errors)
end