Exception: Couchbase::ViewError
- Inherits:
-
Exception
- Object
- Exception
- Couchbase::ViewError
- Defined in:
- lib/couchbase.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(from, reason) ⇒ ViewError
constructor
A new instance of ViewError.
Constructor Details
#initialize(from, reason) ⇒ ViewError
Returns a new instance of ViewError.
38 39 40 41 42 |
# File 'lib/couchbase.rb', line 38 def initialize(from, reason) @from = from @reason = reason super("#{from}: #{reason}") end |
Instance Attribute Details
#from ⇒ Object (readonly)
Returns the value of attribute from.
36 37 38 |
# File 'lib/couchbase.rb', line 36 def from @from end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
36 37 38 |
# File 'lib/couchbase.rb', line 36 def reason @reason end |