Exception: Textus::CursorExpired
- Defined in:
- lib/textus/errors.rb
Constant Summary collapse
- JSONRPC_CODE =
-32_002
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.
239 240 241 242 243 244 245 246 247 248 249 |
# File 'lib/textus/errors.rb', line 239 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.
237 238 239 |
# File 'lib/textus/errors.rb', line 237 def min_available @min_available end |
#requested ⇒ Object (readonly)
Returns the value of attribute requested.
237 238 239 |
# File 'lib/textus/errors.rb', line 237 def requested @requested end |