Exception: ActiveJob::DeserializationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/active_job/arguments.rb

Overview

Raised when an exception is raised during job arguments deserialization.

Wraps the original exception raised as original_exception.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(e) ⇒ DeserializationError

:nodoc:



8
9
10
11
12
# File 'lib/active_job/arguments.rb', line 8

def initialize(e) #:nodoc:
  super("Error while trying to deserialize arguments: #{e.message}")
  @original_exception = e
  set_backtrace e.backtrace
end

Instance Attribute Details

#original_exceptionObject (readonly)

Returns the value of attribute original_exception.



6
7
8
# File 'lib/active_job/arguments.rb', line 6

def original_exception
  @original_exception
end