Exception: StaticTracing::Tracepoint::InvalidArgumentError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ruby-static-tracing/tracepoint.rb

Instance Method Summary collapse

Constructor Details

#initialize(argument, expected_type) ⇒ InvalidArgumentError



17
18
19
20
21
22
23
24
25
# File 'lib/ruby-static-tracing/tracepoint.rb', line 17

def initialize(argument, expected_type)
  error_message = <<~ERROR_MESSAGE

    We expected the fire arguments to match with the ones specified on the creation of the Tracepoint

    You passed #{argument} => #{argument.class} and we expected the argument to be type #{expected_type}
  ERROR_MESSAGE
  super(error_message)
end