Sha256: d3d7140d598797655555293bfbb1b3adbbe0fc521823774d8697dd09629ec207

Contents?: true

Size: 348 Bytes

Versions: 12

Compression:

Stored size: 348 Bytes

Contents

# Information about a given error when executing a job.
#
# It's attached to failed jobs at +ActiveJob::Base#last_execution_error+.
ActiveJob::ExecutionError = Struct.new(:error_class, :message, :backtrace, keyword_init: true) do
  def to_s
    "ERROR #{error_class}: #{message}\n#{backtrace&.collect { |line| "\t#{line}" }&.join("\n")}"
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
mission_control-jobs-0.6.0 lib/active_job/execution_error.rb
mission_control-jobs-0.5.0 lib/active_job/execution_error.rb
mission_control-jobs-0.4.0 lib/active_job/execution_error.rb
mission_control-jobs-0.3.3 lib/active_job/execution_error.rb
mission_control-jobs-0.3.2 lib/active_job/execution_error.rb
mission_control-jobs-0.3.1 lib/active_job/execution_error.rb
mission_control-jobs-0.3.0 lib/active_job/execution_error.rb
mission_control-jobs-0.2.2 lib/active_job/execution_error.rb
mission_control-jobs-0.2.1 lib/active_job/execution_error.rb
mission_control-jobs-0.2.0 lib/active_job/execution_error.rb
mission_control-jobs-0.1.1 lib/active_job/execution_error.rb
mission_control-jobs-0.1.0 lib/active_job/execution_error.rb