Class: Axn::Async::ExceptionReporting::DiscardedJobResult
- Inherits:
-
Object
- Object
- Axn::Async::ExceptionReporting::DiscardedJobResult
- Defined in:
- lib/axn/async/exception_reporting.rb
Instance Attribute Summary collapse
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
Instance Method Summary collapse
- #error ⇒ Object
-
#initialize(exception) ⇒ DiscardedJobResult
constructor
A new instance of DiscardedJobResult.
Constructor Details
#initialize(exception) ⇒ DiscardedJobResult
Returns a new instance of DiscardedJobResult.
60 61 62 |
# File 'lib/axn/async/exception_reporting.rb', line 60 def initialize(exception) @exception = exception end |
Instance Attribute Details
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
68 69 70 |
# File 'lib/axn/async/exception_reporting.rb', line 68 def exception @exception end |
Instance Method Details
#error ⇒ Object
64 65 66 |
# File 'lib/axn/async/exception_reporting.rb', line 64 def error @exception&. || "Job was discarded" end |