Exception: CouchbaseOrm::Error

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

Defined Under Namespace

Classes: DocumentNotFound, 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.



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

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

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



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

def record
  @record
end