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

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_argumentsObject



69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/convenient_service/service/plugins/has_j_send_result_short_syntax/error/exceptions.rb', line 69

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

    Did you mean something like:

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

  initialize(message)
end