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.
227 228 229 230 231 232 233 234 235 236 237 |
# File 'lib/textus/errors.rb', line 227 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.
225 226 227 |
# File 'lib/textus/errors.rb', line 225 def min_available @min_available end |
#requested ⇒ Object (readonly)
Returns the value of attribute requested.
225 226 227 |
# File 'lib/textus/errors.rb', line 225 def requested @requested end |