Exception: Couchbase::ViewError

Inherits:
Exception
  • Object
show all
Defined in:
lib/couchbase.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fromObject (readonly)

Returns the value of attribute from.



36
37
38
# File 'lib/couchbase.rb', line 36

def from
  @from
end

#reasonObject (readonly)

Returns the value of attribute reason.



36
37
38
# File 'lib/couchbase.rb', line 36

def reason
  @reason
end