Class: Axn::Async::ExceptionReporting::DiscardedJobResult

Inherits:
Object
  • Object
show all
Defined in:
lib/axn/async/exception_reporting.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#exceptionObject (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

#errorObject



64
65
66
# File 'lib/axn/async/exception_reporting.rb', line 64

def error
  @exception&.message || "Job was discarded"
end