Sha256: cf0b6dd8399c08194cbb17aff443c0cf15bbf7da0fcfda70784e9bf02bf697a7

Contents?: true

Size: 720 Bytes

Versions: 44

Compression:

Stored size: 720 Bytes

Contents

# frozen_string_literal: true
module GoodJob
  # Stores the results of job execution
  class ExecutionResult
    # @return [Object, nil]
    attr_reader :value
    # @return [Exception, nil]
    attr_reader :handled_error
    # @return [Exception, nil]
    attr_reader :unhandled_error
    # @return [Exception, nil]
    attr_reader :retried
    alias retried? retried

    # @param value [Object, nil]
    # @param handled_error [Exception, nil]
    # @param unhandled_error [Exception, nil]
    def initialize(value:, handled_error: nil, unhandled_error: nil, retried: false)
      @value = value
      @handled_error = handled_error
      @unhandled_error = unhandled_error
      @retried = retried
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
good_job-3.15.14 app/models/good_job/execution_result.rb
good_job-3.15.13 app/models/good_job/execution_result.rb
good_job-3.15.12 app/models/good_job/execution_result.rb
good_job-3.15.11 app/models/good_job/execution_result.rb
good_job-3.15.10 app/models/good_job/execution_result.rb
good_job-3.15.9 app/models/good_job/execution_result.rb
good_job-3.15.8 app/models/good_job/execution_result.rb
good_job-3.15.7 app/models/good_job/execution_result.rb
good_job-3.15.6 app/models/good_job/execution_result.rb
good_job-3.15.5 app/models/good_job/execution_result.rb
good_job-3.15.4 app/models/good_job/execution_result.rb
good_job-3.15.3 app/models/good_job/execution_result.rb
good_job-3.15.2 app/models/good_job/execution_result.rb
good_job-3.15.1 app/models/good_job/execution_result.rb
good_job-3.15.0 app/models/good_job/execution_result.rb
good_job-3.14.2 app/models/good_job/execution_result.rb
good_job-3.14.1 app/models/good_job/execution_result.rb
good_job-3.14.0 app/models/good_job/execution_result.rb
good_job-3.13.0 app/models/good_job/execution_result.rb
good_job-3.12.8 app/models/good_job/execution_result.rb