aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/rescuable_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
|
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* handle loops in the cause chain in Rescuable#rescue_with_handlerPeter McCracken2017-05-101-1/+33
|
* Call fallback exception handlers with the right exceptionSean Griffin2016-11-171-1/+1
| | | | | | | | The issue presented in #26246 showed a deeper underlying problem. When we fell back to the exception handler for an exceptions cause, we were calling that handler with the outer raised exception. This breaks the calling code's expectations, especially if the exception has methods on it behond those from `StandardError`.
* Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty linesRyuta Kamizono2016-08-071-1/+0
|
* modernizes hash syntax in activesupportXavier Noria2016-08-061-3/+3
|
* applies new string literal convention in activesupport/testXavier Noria2016-08-061-13/+13
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Action Mailer: Declarative exception handling with `rescue_from`.Jeremy Daer2016-05-151-4/+17
| | | | | | | | | | | | | | | | | | | | | | | Follows the same pattern as controllers and jobs. Exceptions raised in delivery jobs (enqueued by `#deliver_later`) are also delegated to the mailer's rescue_from handlers, so you can handle the DeserializationError raised by delivery jobs: ```ruby class MyMailer < ApplicationMailer rescue_from ActiveJob::DeserializationError do … end ``` ActiveSupport::Rescuable polish: * Add the `rescue_with_handler` class method so exceptions may be handled at the class level without requiring an instance. * Rationalize `exception.cause` handling. If no handler matches the exception, fall back to the handler that matches its cause. * Handle exceptions raised elsewhere. Pass `object: …` to execute the `rescue_from` handler (e.g. a method call or a block to instance_exec) against a different object. Defaults to `self`.
* Add class level case operator support for error dispatching in RescuableGenadi Samokovarov2014-12-101-2/+27
|
* Pass symbol as an argument instead of a blockErik Michaels-Ober2014-11-291-2/+2
|
* Fix some typo in method names, variablesVipul A M2013-05-261-1/+1
|
* Test that rescue_from accepts a class name in StringAkira Matsuda2013-01-231-2/+1
|
* use AS::TestCase as the base classAaron Patterson2012-01-051-1/+1
|
* Rescuable spelling errorChristian Höltje2011-10-031-1/+1
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-4/+4
| | | | 's/[ \t]*$//' -i {} \;)
* strengthening the test suite for rescue_fromNeeraj Singh2010-07-261-0/+23
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* strengthening the rescue_from test suitesNeeraj Singh2010-07-261-0/+14
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* No need to emulate default Ruby behavior in initializeYehuda Katz2010-02-101-3/+0
|
* Don't rely on @message in Error classes being available for useYehuda Katz2010-02-101-4/+1
|
* Add tests for ActiveSupport::Rescuable. Use ActiveSupport::Rescuable in ↵Pratik Naik2008-10-041-0/+75
ActionController::Base.