Exception: Solid::Result::CallableAndThen::Error::InvalidArity

Inherits:
Solid::Result::CallableAndThen::Error show all
Defined in:
lib/solid/result/callable_and_then/error.rb

Class Method Summary collapse

Class Method Details

.build(source:, method:, arity:) ⇒ Object



6
7
8
# File 'lib/solid/result/callable_and_then/error.rb', line 6

def self.build(source:, method:, arity:)
  new("Invalid arity for #{source.class}##{method} method. Expected arity: #{arity}")
end