Class: ConvenientService::Service::Plugins::RescuesResultUnhandledExceptions::Middleware Private
- Inherits:
-
MethodChainMiddleware
- Object
- ConvenientService::Service::Plugins::RescuesResultUnhandledExceptions::Middleware
- Defined in:
- lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/middleware.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
Instance Method Details
#next(*args, **kwargs, &block) ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Note:
This middleware can be used for both instance and class :result methods.
62 63 64 65 66 |
# File 'lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/middleware.rb', line 62 def next(*args, **kwargs, &block) chain.next(*args, **kwargs, &block) rescue => exception result_from_unhandled_exception(exception, *args, **kwargs, &block) end |