Exception: JobIteration::Iteration::CursorError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/job-iteration/iteration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, cursor:) ⇒ CursorError

Returns a new instance of CursorError.



24
25
26
27
# File 'lib/job-iteration/iteration.rb', line 24

def initialize(message, cursor:)
  super(message)
  @cursor = cursor
end

Instance Attribute Details

#cursorObject (readonly)

Returns the value of attribute cursor.



22
23
24
# File 'lib/job-iteration/iteration.rb', line 22

def cursor
  @cursor
end

Instance Method Details

#messageObject



29
30
31
# File 'lib/job-iteration/iteration.rb', line 29

def message
  "#{super} (#{inspected_cursor})"
end