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

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.



72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/convenient_service/service/plugins/has_j_send_result_short_syntax/failure/exceptions.rb', line 72

def initialize_without_arguments
  message = <<~TEXT
    More than two `args` are passed to the `failure` method.

    Did you mean something like:

    failure("Helpful text")
    failure("Helpful text", :descriptive_code)
  TEXT

  initialize(message)
end