Exception: ConvenientService::Service::Plugins::HasJSendResultShortSyntax::Error::Exceptions::BothArgsAndKwargsArePassed

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/service/plugins/has_j_send_result_short_syntax/error/exceptions.rb

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_without_argumentsvoid



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/convenient_service/service/plugins/has_j_send_result_short_syntax/error/exceptions.rb', line 13

def initialize_without_arguments
  message = "    Both `args` and `kwargs` are passed to the `error` method.\n\n    Did you mean something like:\n\n    error(\"Helpful text\")\n    error(\"Helpful text\", :descriptive_code)\n\n    error(message: \"Helpful text\")\n    error(message: \"Helpful text\", code: :descriptive_code)\n  TEXT\n\n  initialize(message)\nend\n"