Exception: Xampl::UnmanagedChange

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xampl = nil) ⇒ UnmanagedChange

Returns a new instance of UnmanagedChange.



75
76
77
# File 'lib/xamplr/exceptions.rb', line 75

def initialize(xampl=nil)
  @xampl = xampl
end

Instance Attribute Details

#xamplObject (readonly)

Returns the value of attribute xampl.



73
74
75
# File 'lib/xamplr/exceptions.rb', line 73

def xampl
  @xampl
end

Instance Method Details

#messageObject



79
80
81
# File 'lib/xamplr/exceptions.rb', line 79

def message
  "attempt to change #{@xampl}, pid: #{@xampl.get_the_index}, oid: #{@xampl.object_id} outside of its persister's management"
end