Exception: StaticTracing::Tracepoint::InvalidArgumentError
- Inherits:
-
StandardError
- Object
- StandardError
- StaticTracing::Tracepoint::InvalidArgumentError
- Defined in:
- lib/ruby-static-tracing/tracepoint.rb
Instance Method Summary collapse
-
#initialize(argument, expected_type) ⇒ InvalidArgumentError
constructor
A new instance of InvalidArgumentError.
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 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() end |