Exception: ConvenientService::Service::Plugins::HasJSendResultShortSyntax::Exceptions::BothArgsAndKwargsArePassed
- Inherits:
-
Exception
- Object
- StandardError
- Exception
- ConvenientService::Service::Plugins::HasJSendResultShortSyntax::Exceptions::BothArgsAndKwargsArePassed
- Defined in:
- lib/convenient_service/service/plugins/has_j_send_result_short_syntax/exceptions.rb
Instance Method Summary collapse
Methods inherited from Exception
Instance Method Details
#initialize_with_kwargs(status:) ⇒ void
This method returns an undefined value.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/convenient_service/service/plugins/has_j_send_result_short_syntax/exceptions.rb', line 58 def initialize_with_kwargs(status:) = <<~TEXT Both `args` and `kwargs` are passed to the `#{status}` method. Did you mean something like: #{status}("Helpful text") #{status}("Helpful text", :descriptive_code) #{status}(message: "Helpful text") #{status}(message: "Helpful text", code: :descriptive_code) TEXT initialize() end |