Class: ConvenientService::Service::Plugins::RescuesResultUnhandledExceptions::Middleware
- Inherits:
-
MethodChainMiddleware
- Object
- ConvenientService::Service::Plugins::RescuesResultUnhandledExceptions::Middleware
- Defined in:
- lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/middleware.rb
Instance Method Summary collapse
Instance Method Details
#next(*args, **kwargs, &block) ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
Note:
This middleware can be used for both instance and class :result
methods.
57 58 59 60 61 |
# File 'lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/middleware.rb', line 57 def next(*args, **kwargs, &block) chain.next(*args, **kwargs, &block) rescue => exception result_from_unhandled_exception(exception, *args, **kwargs, &block) end |