Class: ApiPack::Errors::HandleError

Inherits:
Object
  • Object
show all
Includes:
ErrorMap
Defined in:
lib/api_pack/errors/handle_error.rb

Constant Summary

Constants included from ErrorMap

ErrorMap::ERROR_MAP

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ HandleError

Returns a new instance of HandleError.



6
7
8
# File 'lib/api_pack/errors/handle_error.rb', line 6

def initialize(error)
  @error = error
end

Instance Method Details

#callObject



10
11
12
# File 'lib/api_pack/errors/handle_error.rb', line 10

def call
  handle_error
end