Sha256: 30f06fe3619ecd009d6f066c37f40e4c952babc3fb781db4a6e400bdb87c90df

Contents?: true

Size: 482 Bytes

Versions: 6

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

module Floe
  class Workflow
    # Methods for common error handling
    module ErrorMatcherMixin
      # @param [String] error the error thrown
      def match_error?(error)
        return false if error == "States.Runtime"
        return true if error_equals.include?("States.ALL")
        return true if error_equals.include?("States.Timeout") && error == "States.HeartbeatTimeout"

        error_equals.include?(error)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
floe-0.15.1 lib/floe/workflow/error_matcher_mixin.rb
floe-0.15.0 lib/floe/workflow/error_matcher_mixin.rb
floe-0.14.0 lib/floe/workflow/error_matcher_mixin.rb
floe-0.13.1 lib/floe/workflow/error_matcher_mixin.rb
floe-0.13.0 lib/floe/workflow/error_matcher_mixin.rb
floe-0.12.0 lib/floe/workflow/error_matcher_mixin.rb