aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job/arguments.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2016-10-10 14:55:20 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2016-10-10 14:55:20 -0300
commitd861a1fcf8401a173876489d8cee1ede1cecde3b (patch)
tree0c083b2c33eb9616beed83c4c95caf562abf7860 /activejob/lib/active_job/arguments.rb
parentb9ba263e5aaa151808df058f5babfed016a1879f (diff)
downloadrails-d861a1fcf8401a173876489d8cee1ede1cecde3b.tar.gz
rails-d861a1fcf8401a173876489d8cee1ede1cecde3b.tar.bz2
rails-d861a1fcf8401a173876489d8cee1ede1cecde3b.zip
Removed deprecated #original_exception in ActiveJob::DeserializationError
Diffstat (limited to 'activejob/lib/active_job/arguments.rb')
-rw-r--r--activejob/lib/active_job/arguments.rb14
1 files changed, 1 insertions, 13 deletions
diff --git a/activejob/lib/active_job/arguments.rb b/activejob/lib/active_job/arguments.rb
index 23e237c1b7..523a0e7f33 100644
--- a/activejob/lib/active_job/arguments.rb
+++ b/activejob/lib/active_job/arguments.rb
@@ -5,22 +5,10 @@ module ActiveJob
#
# Wraps the original exception raised as +cause+.
class DeserializationError < StandardError
- 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
-
+ def initialize #:nodoc:
super("Error while trying to deserialize arguments: #{$!.message}")
set_backtrace $!.backtrace
end
-
- # The original exception that was raised during deserialization of job
- # arguments.
- def original_exception
- ActiveSupport::Deprecation.warn("#original_exception is deprecated. Use #cause instead.", caller)
- cause
- end
end
# Raised when an unsupported argument type is set as a job argument. We