Exception: Xampl::ReturnOrThrowInTransaction
- Inherits:
-
Exception
- Object
- Exception
- Xampl::ReturnOrThrowInTransaction
- 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) ⇒ ReturnOrThrowInTransaction
constructor
A new instance of ReturnOrThrowInTransaction.
- #message ⇒ Object
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
#xampl ⇒ Object (readonly)
Returns the value of attribute xampl.
107 108 109 |
# File 'lib/xamplr/exceptions.rb', line 107 def xampl @xampl end |
Instance Method Details
#message ⇒ Object
113 114 115 |
# File 'lib/xamplr/exceptions.rb', line 113 def "attempt to change #{@xampl}, pid: #{@xampl.get_the_index}, oid: #{@xampl.object_id} when changes are blocked" end |