Exception: CouchbaseOrm::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/couchbase-orm/error.rb

Defined Under Namespace

Classes: EmptyNotAllowed, RecordExists, RecordInvalid, TypeMismatchError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, record = nil) ⇒ Error

Returns a new instance of Error.



7
8
9
10
# File 'lib/couchbase-orm/error.rb', line 7

def initialize(message = nil, record = nil)
    @record = record
    super(message)
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



5
6
7
# File 'lib/couchbase-orm/error.rb', line 5

def record
  @record
end