Exception: Familia::NotConnected
- Inherits:
-
PersistenceError
- Object
- RuntimeError
- Problem
- PersistenceError
- Familia::NotConnected
- Defined in:
- lib/familia/errors.rb
Overview
Raised when no connection is available for a given URI
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri) ⇒ NotConnected
constructor
A new instance of NotConnected.
- #message ⇒ Object
Constructor Details
#initialize(uri) ⇒ NotConnected
Returns a new instance of NotConnected.
89 90 91 92 |
# File 'lib/familia/errors.rb', line 89 def initialize(uri) @uri = uri super end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
87 88 89 |
# File 'lib/familia/errors.rb', line 87 def uri @uri end |
Instance Method Details
#message ⇒ Object
94 95 96 |
# File 'lib/familia/errors.rb', line 94 def "No client for #{uri.serverid}" end |