Exception: Bayarcash::TimeoutError

Inherits:
Error
  • Object
show all
Defined in:
lib/bayarcash/errors.rb

Overview

Raised by the optional MakesHttpRequests#retry_until helper after a timeout.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(output = []) ⇒ TimeoutError

Returns a new instance of TimeoutError.



44
45
46
47
# File 'lib/bayarcash/errors.rb', line 44

def initialize(output = [])
  @output = output
  super("Script timed out while waiting for the process to complete.")
end

Instance Attribute Details

#outputArray (readonly)

Returns the output collected before the timeout.

Returns:

  • (Array)

    the output collected before the timeout



42
43
44
# File 'lib/bayarcash/errors.rb', line 42

def output
  @output
end