Exception: Rubino::AmbiguousSessionError

Inherits:
SessionError show all
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

Instance Method Summary collapse

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(build_message)
end

Instance Attribute Details

#matchesObject (readonly)

Returns the value of attribute matches.



20
21
22
# File 'lib/rubino.rb', line 20

def matches
  @matches
end

#queryObject (readonly)

Returns the value of attribute query.



20
21
22
# File 'lib/rubino.rb', line 20

def query
  @query
end