class WiseGopher::ArgumentError
raised when `execute` is called whereas query needs params or `execute_with` did not provide all params
Attributes
params[R]
Public Class Methods
new(params)
click to toggle source
# File lib/wise_gopher/errors.rb, line 12 def initialize(params) @params = params.map do |name, param| param_type = param.respond_to?(:type) ? param.type.type : :raw_param "- \"#{name}\" (#{param_type})" end.join("\n") end
Public Instance Methods
message()
click to toggle source
# File lib/wise_gopher/errors.rb, line 19 def message <<~STR \n The following params are required but were not provided: #{params} STR end