Sha256: 7772afe004ccc5a3c7d7234f0fc2c876634343ab242293ebb2a76316bf240008

Contents?: true

Size: 319 Bytes

Versions: 20

Compression:

Stored size: 319 Bytes

Contents

module BusinessFlow
  # Exception raised by DSL when flow execution fails
  class FlowFailedException < RuntimeError
    attr_reader :flow

    def initialize(flow)
      errors = flow.errors.full_messages.join(', ')
      super("Failed execution of #{flow.class.name}: #{errors}")
      @flow = flow
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
business_flow-0.17.5 lib/business_flow/flow_failed_exception.rb
business_flow-0.17.4 lib/business_flow/flow_failed_exception.rb
business_flow-0.17.3 lib/business_flow/flow_failed_exception.rb
business_flow-0.17.2 lib/business_flow/flow_failed_exception.rb
business_flow-0.17.1 lib/business_flow/flow_failed_exception.rb
business_flow-0.17.0 lib/business_flow/flow_failed_exception.rb
business_flow-0.16.0 lib/business_flow/flow_failed_exception.rb
business_flow-0.15.1 lib/business_flow/flow_failed_exception.rb
business_flow-0.15.0 lib/business_flow/flow_failed_exception.rb
business_flow-0.14.3 lib/business_flow/flow_failed_exception.rb
business_flow-0.14.2 lib/business_flow/flow_failed_exception.rb
business_flow-0.14.1 lib/business_flow/flow_failed_exception.rb
business_flow-0.14.0 lib/business_flow/flow_failed_exception.rb
business_flow-0.13.0 lib/business_flow/flow_failed_exception.rb
business_flow-0.12.1 lib/business_flow/flow_failed_exception.rb
business_flow-0.12.0 lib/business_flow/flow_failed_exception.rb
business_flow-0.11.1 lib/business_flow/flow_failed_exception.rb
business_flow-0.11.0 lib/business_flow/flow_failed_exception.rb
business_flow-0.10.0 lib/business_flow/flow_failed_exception.rb
business_flow-0.9.1 lib/business_flow/flow_failed_exception.rb