Exception: Rubino::AmbiguousSessionError
- Inherits:
-
SessionError
- Object
- StandardError
- Error
- SessionError
- Rubino::AmbiguousSessionError
- Defined in:
- lib/rubino.rb
Overview
Raised when –resume <query> matches more than one session by id-prefix or title-substring. Carries the matches so the CLI can list them and ask the user to disambiguate, instead of silently picking the first.
Instance Attribute Summary collapse
-
#matches ⇒ Object
readonly
Returns the value of attribute matches.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(query, matches) ⇒ AmbiguousSessionError
constructor
A new instance of AmbiguousSessionError.
Constructor Details
#initialize(query, matches) ⇒ AmbiguousSessionError
Returns a new instance of AmbiguousSessionError.
22 23 24 25 26 |
# File 'lib/rubino.rb', line 22 def initialize(query, matches) @query = query @matches = matches super() end |
Instance Attribute Details
#matches ⇒ Object (readonly)
Returns the value of attribute matches.
20 21 22 |
# File 'lib/rubino.rb', line 20 def matches @matches end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
20 21 22 |
# File 'lib/rubino.rb', line 20 def query @query end |