class ActiveJob::DeserializationError

Wraps the original exception raised as cause.
Raised when an exception is raised during job arguments deserialization.

def initialize(e = nil) #:nodoc:

:nodoc:
def initialize(e = nil) #:nodoc:
  if e
    ActiveSupport::Deprecation.warn("Passing #original_exception is deprecated and has no effect. " \
                                    "Exceptions will automatically capture the original exception.", caller)
  end
  super("Error while trying to deserialize arguments: #{$!.message}")
  set_backtrace $!.backtrace
end

def original_exception

arguments.
The original exception that was raised during deserialization of job
def original_exception
  ActiveSupport::Deprecation.warn("#original_exception is deprecated. Use #cause instead.", caller)
  cause
end