Exception: Creditario::Exceptions::InvalidResponseBodyError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/creditario/exceptions.rb

Overview

Excepción arrojada cuando el servidor de creditar.io regresa una respuesta que no es JSON Probablemente estás mandando un header incorrecto.

Constant Summary collapse

TECHNICAL_MESSAGE =

:nodoc:

"Technical message -> "
HUMAN_MESSAGE =

:nodoc:

"The API responded with something that is not JSON, is your request ok?\n"

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ InvalidResponseBodyError

:nodoc:



103
104
105
# File 'lib/creditario/exceptions.rb', line 103

def initialize(message) # :nodoc:
  super(msg = "#{HUMAN_MESSAGE}#{TECHNICAL_MESSAGE}#{message}")
end