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.
68 69 70 71 |
# File 'lib/familia/errors.rb', line 68 def initialize(uri) @uri = uri super end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
66 67 68 |
# File 'lib/familia/errors.rb', line 66 def uri @uri end |
Instance Method Details
#message ⇒ Object
73 74 75 |
# File 'lib/familia/errors.rb', line 73 def "No client for #{uri.serverid}" end |