module Sentry::ArgumentCheckingHelper

def check_argument_type!(argument, *expected_types)

def check_argument_type!(argument, *expected_types)
  unless expected_types.any? { |t| argument.is_a?(t) }
    raise ArgumentError, "expect the argument to be a #{expected_types.join(' or ')}, got #{argument.class} (#{argument.inspect})"
  end
end