Exception: ConnectorsShared::SuspendedJobError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/connectors_shared/errors.rb

Direct Known Subclasses

ThrottlingError, TransientServerError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, suspend_until:, cursors: nil) ⇒ SuspendedJobError

Returns a new instance of SuspendedJobError.



47
48
49
50
51
# File 'lib/connectors_shared/errors.rb', line 47

def initialize(message = nil, suspend_until:, cursors: nil)
  super(message)
  @suspend_until = suspend_until
  @cursors = cursors
end

Instance Attribute Details

#cursorsObject

Returns the value of attribute cursors.



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

def cursors
  @cursors
end

#suspend_untilObject

Returns the value of attribute suspend_until.



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

def suspend_until
  @suspend_until
end