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.
126 127 128 129 |
# File 'lib/familia/errors.rb', line 126 def initialize(uri) @uri = uri super end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
124 125 126 |
# File 'lib/familia/errors.rb', line 124 def uri @uri end |
Instance Method Details
#message ⇒ Object
131 132 133 |
# File 'lib/familia/errors.rb', line 131 def "No client for #{uri.serverid}" end |