Exception: Creditario::Exceptions::InvalidResponseBodyError
- Inherits:
-
StandardError
- Object
- StandardError
- Creditario::Exceptions::InvalidResponseBodyError
- 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
-
#initialize(message) ⇒ InvalidResponseBodyError
constructor
:nodoc:.
Constructor Details
#initialize(message) ⇒ InvalidResponseBodyError
:nodoc:
103 104 105 |
# File 'lib/creditario/exceptions.rb', line 103 def initialize() # :nodoc: super(msg = "#{HUMAN_MESSAGE}#{TECHNICAL_MESSAGE}#{}") end |