Exception: ActiveJob::DeserializationError
- Inherits:
-
StandardError
- Object
- StandardError
- ActiveJob::DeserializationError
- 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
-
#original_exception ⇒ Object
readonly
Returns the value of attribute original_exception.
Instance Method Summary collapse
-
#initialize(e) ⇒ DeserializationError
constructor
:nodoc:.
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.}") @original_exception = e set_backtrace e.backtrace end |
Instance Attribute Details
#original_exception ⇒ Object (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 |