Exception: ActiveJob::DeserializationError

Inherits:
StandardError
  • Object
show all
Defined in:
activejob/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:


10
11
12
13
14
# File 'activejob/lib/active_job/arguments.rb', line 10

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


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

def original_exception
  @original_exception
end