Class: ConvenientService::Service::Plugins::RaisesOnNotResultReturnValue::Middleware Private
- Inherits:
-
MethodChainMiddleware
- Object
- ConvenientService::Service::Plugins::RaisesOnNotResultReturnValue::Middleware
- Defined in:
- lib/convenient_service/service/plugins/raises_on_not_result_return_value/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
- #next ⇒ Object private
Instance Method Details
#next ⇒ Object
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.
15 16 17 18 19 20 21 |
# File 'lib/convenient_service/service/plugins/raises_on_not_result_return_value/middleware.rb', line 15 def next(...) original_result = chain.next(...) return original_result if Service::Plugins::HasJSendResult.result?(original_result) ::ConvenientService.raise Exceptions::ReturnValueNotKindOfResult.new(service: entity, result: original_result, method: method) end |