Exception: Xampl::BlockedChange
- Inherits:
-
Exception
- Object
- Exception
- Xampl::BlockedChange
- Defined in:
- lib/xamplr/exceptions.rb
Instance Attribute Summary collapse
-
#xampl ⇒ Object
readonly
Returns the value of attribute xampl.
Instance Method Summary collapse
-
#initialize(xampl = nil) ⇒ BlockedChange
constructor
A new instance of BlockedChange.
- #message ⇒ Object
Constructor Details
#initialize(xampl = nil) ⇒ BlockedChange
Returns a new instance of BlockedChange.
52 53 54 |
# File 'lib/xamplr/exceptions.rb', line 52 def initialize(xampl=nil) @xampl = xampl end |
Instance Attribute Details
#xampl ⇒ Object (readonly)
Returns the value of attribute xampl.
50 51 52 |
# File 'lib/xamplr/exceptions.rb', line 50 def xampl @xampl end |
Instance Method Details
#message ⇒ Object
56 57 58 |
# File 'lib/xamplr/exceptions.rb', line 56 def "attempt to change #{@xampl}, pid: #{@xampl.get_the_index}, oid: #{@xampl.object_id} when changes are blocked" end |