# File lib/util/error_handler.rb, line 28 def can_raise_error(method_names, options = {}) error_class = options[:error_class] below = options[:below] || 0 # coerce the names to be an array Array(method_names).each do |method_name| raise "missing method #{method_name.inspect}" unless method_defined?(method_name) || private_method_defined?(method_name) create_exception_handler_wrapper(method_name, error_class, below) end end