Sha256: e88fe319be9d5fd872a2898061ef405b350b732a1375f099d8916b2fd8048772
Contents?: true
Size: 717 Bytes
Versions: 1
Compression:
Stored size: 717 Bytes
Contents
module Transflow class TransactionFailedError < StandardError attr_reader :transaction attr_reader :original_error def initialize(transaction, original_error) @transaction = transaction @original_error = original_error super("#{transaction} failed [#{original_error.class}: #{original_error.message}]") set_backtrace(original_error.backtrace) end end class StepError < StandardError attr_reader :original_error def initialize(input = nil) if input.kind_of?(StandardError) @original_error = input super(@original_error.message) set_backtrace(original_error.backtrace) else super(input) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
transflow-0.3.0 | lib/transflow/errors.rb |