module Hyperdrive module Errors module DSL class UnknownArgument < RuntimeError def initialize(argument, method_name) @argument = case argument when Symbol ":#{argument}" else argument.to_s end @method_name = method_name end def message "#{@argument} is not supported by `#{@method_name}'." end end end end end