File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ * Removed deprecated ` #original_exception ` in ` ActiveJob::DeserializationError ` .
2+
3+ * Rafael Mendonça França*
4+
15* Added instance variable ` @queue ` to JobWrapper.
26
37 This will fix issues in [ resque-scheduler] ( https://github.com/resque/resque-scheduler ) ` #job_to_hash ` method,
Original file line number Diff line number Diff line change @@ -5,22 +5,10 @@ module ActiveJob
55 #
66 # Wraps the original exception raised as +cause+.
77 class DeserializationError < StandardError
8- def initialize ( e = nil ) #:nodoc:
9- if e
10- ActiveSupport ::Deprecation . warn ( "Passing #original_exception is deprecated and has no effect. " \
11- "Exceptions will automatically capture the original exception." , caller )
12- end
13-
8+ def initialize #:nodoc:
149 super ( "Error while trying to deserialize arguments: #{ $!. message } " )
1510 set_backtrace $!. backtrace
1611 end
17-
18- # The original exception that was raised during deserialization of job
19- # arguments.
20- def original_exception
21- ActiveSupport ::Deprecation . warn ( "#original_exception is deprecated. Use #cause instead." , caller )
22- cause
23- end
2412 end
2513
2614 # Raised when an unsupported argument type is set as a job argument. We
You can’t perform that action at this time.
0 commit comments