Exception: Isy::ArgumentTypeMismatch

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/isy/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(subject:, caller_method:) ⇒ ArgumentTypeMismatch

Returns a new instance of ArgumentTypeMismatch.



3
4
5
# File 'lib/isy/exceptions.rb', line 3

def initialize subject:, caller_method:
  super "#{subject.inspect} isn't a valid argument for ##{caller_method}"
end