Class: ActiveJob::ExecutionError
- Inherits:
-
Struct
- Object
- Struct
- ActiveJob::ExecutionError
- Defined in:
- lib/active_job/execution_error.rb
Overview
Information about a given error when executing a job.
It's attached to failed jobs at ActiveJob::Base#last_execution_error.
Instance Attribute Summary collapse
-
#backtrace ⇒ Object
Returns the value of attribute backtrace.
-
#error_class ⇒ Object
Returns the value of attribute error_class.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
Instance Attribute Details
#backtrace ⇒ Object
Returns the value of attribute backtrace
4 5 6 |
# File 'lib/active_job/execution_error.rb', line 4 def backtrace @backtrace end |
#error_class ⇒ Object
Returns the value of attribute error_class
4 5 6 |
# File 'lib/active_job/execution_error.rb', line 4 def error_class @error_class end |
#message ⇒ Object
Returns the value of attribute message
4 5 6 |
# File 'lib/active_job/execution_error.rb', line 4 def @message end |
Instance Method Details
#to_s ⇒ Object
5 6 7 |
# File 'lib/active_job/execution_error.rb', line 5 def to_s "ERROR #{error_class}: #{}\n#{backtrace&.collect { |line| "\t#{line}" }&.join("\n")}" end |