Exception: Xampl::ReturnOrThrowInTransaction

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xampl = nil) ⇒ ReturnOrThrowInTransaction

Returns a new instance of ReturnOrThrowInTransaction.



109
110
111
# File 'lib/xamplr/exceptions.rb', line 109

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

Instance Attribute Details

#xamplObject (readonly)

Returns the value of attribute xampl.



107
108
109
# File 'lib/xamplr/exceptions.rb', line 107

def xampl
  @xampl
end

Instance Method Details

#messageObject



113
114
115
# File 'lib/xamplr/exceptions.rb', line 113

def message
  "attempt to change #{@xampl}, pid: #{@xampl.get_the_index}, oid: #{@xampl.object_id} when changes are blocked"
end