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
#code, #details, #exit_code, #hint
Instance Method Summary collapse
-
#initialize(requested:, min_available:) ⇒ CursorExpired
constructor
A new instance of CursorExpired.
Methods inherited from Error
Constructor Details
#initialize(requested:, min_available:) ⇒ CursorExpired
Returns a new instance of CursorExpired.
222 223 224 225 226 227 228 229 230 231 232 |
# File 'lib/textus/errors.rb', line 222 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.
220 221 222 |
# File 'lib/textus/errors.rb', line 220 def min_available @min_available end |
#requested ⇒ Object (readonly)
Returns the value of attribute requested.
220 221 222 |
# File 'lib/textus/errors.rb', line 220 def requested @requested end |