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

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

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_without_argumentsvoid

This method returns an undefined value.



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/convenient_service/service/plugins/has_j_send_result_short_syntax/failure/exceptions.rb', line 51

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