Exception: Datahen::Error::CustomRetryError

Inherits:
Exception
  • Object
show all
Defined in:
lib/datahen/error/custom_retry_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(delay, error = nil) ⇒ CustomRetryError

Returns a new instance of CustomRetryError.



6
7
8
9
# File 'lib/datahen/error/custom_retry_error.rb', line 6

def initialize delay, error = nil
  self.error = error
  self.delay = delay
end

Instance Attribute Details

#delayObject

Returns the value of attribute delay.



4
5
6
# File 'lib/datahen/error/custom_retry_error.rb', line 4

def delay
  @delay
end

#errorObject

Returns the value of attribute error.



4
5
6
# File 'lib/datahen/error/custom_retry_error.rb', line 4

def error
  @error
end