Exception: Transactor::PerformanceBombed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/transactor/errors.rb

Direct Known Subclasses

RollbackBombed

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(e, performance = nil) ⇒ PerformanceBombed

Returns a new instance of PerformanceBombed.



9
10
11
12
13
# File 'lib/transactor/errors.rb', line 9

def initialize(e, performance=nil)
  super("#{e.class.name}: #{e.message} #{performance.to_s}")
  set_backtrace e.backtrace
  @performance = performance
end

Instance Attribute Details

#performanceObject (readonly)

Returns the value of attribute performance.



7
8
9
# File 'lib/transactor/errors.rb', line 7

def performance
  @performance
end