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.



77
78
79
80
81
82
83
84
85
86
87
88
# File 'lib/convenient_service/service/plugins/has_j_send_result_short_syntax/failure/exceptions.rb', line 77

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