Exception: Creditario::Exceptions::APIBusyError

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

Overview

Excepción arrojada cuando el servidor de creditar.io se tarda mucho en responder. O cuando se pierde la conexión de internet a medio request. Probablemente reintentando la petición se solucione el problema.

Constant Summary collapse

TECHNICAL_MESSAGE =

:nodoc:

"Technical message -> "
HUMAN_MESSAGE =

:nodoc:

"The communication with the API has timed out.\n"

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ APIBusyError

:nodoc:



116
117
118
# File 'lib/creditario/exceptions.rb', line 116

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