Class: ConvenientService::Service::Plugins::HasJSendResultShortSyntax::Error::Middleware
- Inherits:
-
MethodChainMiddleware
- Object
- ConvenientService::Service::Plugins::HasJSendResultShortSyntax::Error::Middleware
- Defined in:
- lib/convenient_service/service/plugins/has_j_send_result_short_syntax/error/middleware.rb
Instance Method Summary collapse
Instance Method Details
#next(*args, **kwargs, &block) ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
17 18 19 20 21 |
# File 'lib/convenient_service/service/plugins/has_j_send_result_short_syntax/error/middleware.rb', line 17 def next(*args, **kwargs, &block) ::ConvenientService.raise Exceptions::BothArgsAndKwargsArePassed.new if args.any? && kwargs.any? args.any? ? error_from_args : error_from_kwargs end |