Exception: Textus::CursorExpired
- Defined in:
- lib/textus/errors.rb
Instance Attribute Summary collapse
-
#min_available ⇒ Object
readonly
Returns the value of attribute min_available.
-
#requested ⇒ Object
readonly
Returns the value of attribute requested.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(requested:, min_available:) ⇒ CursorExpired
constructor
A new instance of CursorExpired.
Methods inherited from Error
#details, #exit_code, #hint, #to_envelope
Constructor Details
#initialize(requested:, min_available:) ⇒ CursorExpired
Returns a new instance of CursorExpired.
237 238 239 240 241 242 243 244 245 246 247 |
# File 'lib/textus/errors.rb', line 237 def initialize(requested:, min_available:) @requested = requested @min_available = min_available super( "cursor_expired", "audit cursor expired: requested seq=#{requested} but oldest available is #{min_available}; " \ "call `textus boot` to re-orient and resume from latest_seq", details: { "requested" => requested, "min_available" => min_available }, hint: "call `textus boot` to get the current latest_seq and resume from there", ) end |
Instance Attribute Details
#min_available ⇒ Object (readonly)
Returns the value of attribute min_available.
235 236 237 |
# File 'lib/textus/errors.rb', line 235 def min_available @min_available end |
#requested ⇒ Object (readonly)
Returns the value of attribute requested.
235 236 237 |
# File 'lib/textus/errors.rb', line 235 def requested @requested end |