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.



139
140
141
# File 'lib/axn/async/exception_reporting.rb', line 139

def initialize(exception)
  @exception = exception
end

Instance Attribute Details

#exceptionObject (readonly)

Returns the value of attribute exception.



147
148
149
# File 'lib/axn/async/exception_reporting.rb', line 147

def exception
  @exception
end

Instance Method Details

#errorObject



143
144
145
# File 'lib/axn/async/exception_reporting.rb', line 143

def error
  @exception ? Axn::Internal::Rendering.exception_message(@exception) : "Job was discarded"
end