Sha256: e63ceaee5783b9720d940861928e89887e4fbc131a2ec07c177072f0da2ab305

Contents?: true

Size: 350 Bytes

Versions: 8

Compression:

Stored size: 350 Bytes

Contents

# frozen_string_literal: true

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

8 entries across 8 versions & 1 rubygems

Version Path
business_flow-0.19.6 lib/business_flow/flow_failed_exception.rb
business_flow-0.19.4 lib/business_flow/flow_failed_exception.rb
business_flow-0.19.3 lib/business_flow/flow_failed_exception.rb
business_flow-0.19.2 lib/business_flow/flow_failed_exception.rb
business_flow-0.19.1 lib/business_flow/flow_failed_exception.rb
business_flow-0.19.0 lib/business_flow/flow_failed_exception.rb
business_flow-0.18.1 lib/business_flow/flow_failed_exception.rb
business_flow-0.18.0 lib/business_flow/flow_failed_exception.rb