Module: ApiResponserHelper

Defined in:
app/helpers/api_responser_helper.rb

Class Method Summary collapse

Class Method Details

.error_handling(code: nil, debug_message: nil, message: nil) ⇒ Object



2
3
4
# File 'app/helpers/api_responser_helper.rb', line 2

def self.error_handling(code:nil,debug_message:nil,message:nil)
  Logger.new(STDOUT).fatal("Error with code #{code}. Debug message: #{debug_message}. Message: #{message}")
end