Sha256: cb89cd5876a098582607ba135a4966a982d92b19f13fbf5a2276787e242b8068

Contents?: true

Size: 566 Bytes

Versions: 10

Compression:

Stored size: 566 Bytes

Contents

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
good_job-1.11.2 lib/good_job/execution_result.rb
good_job-1.11.1 lib/good_job/execution_result.rb
good_job-1.11.0 lib/good_job/execution_result.rb
good_job-1.10.1 lib/good_job/execution_result.rb
good_job-1.10.0 lib/good_job/execution_result.rb
good_job-1.9.6 lib/good_job/execution_result.rb
good_job-1.9.5 lib/good_job/execution_result.rb
good_job-1.9.4 lib/good_job/execution_result.rb
good_job-1.9.3 lib/good_job/execution_result.rb
good_job-1.9.2 lib/good_job/execution_result.rb