Exception: Xampl::BlockedChange

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xampl = nil) ⇒ BlockedChange

Returns a new instance of BlockedChange.



51
52
53
# File 'lib/xamplr/exceptions.rb', line 51

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

Instance Attribute Details

#xamplObject (readonly)

Returns the value of attribute xampl.



49
50
51
# File 'lib/xamplr/exceptions.rb', line 49

def xampl
  @xampl
end

Instance Method Details

#messageObject



55
56
57
# File 'lib/xamplr/exceptions.rb', line 55

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