Sha256: 35e7ddb14baf801264d8218f88e4266d52c23f90d0ebb3190cea873df319247f

Contents?: true

Size: 562 Bytes

Versions: 19

Compression:

Stored size: 562 Bytes

Contents

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
          "DSL Error: The argument you supplied (#{@argument}) is not supported by the `#{@method_name}' method."
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
hyperdrive-0.0.25 lib/hyperdrive/errors/dsl/unknown_argument.rb
hyperdrive-0.0.24 lib/hyperdrive/errors/dsl/unknown_argument.rb
hyperdrive-0.0.23 lib/hyperdrive/errors/dsl/unknown_argument.rb
hyperdrive-0.0.22 lib/hyperdrive/errors/dsl/unknown_argument.rb
hyperdrive-0.0.21 lib/hyperdrive/errors/dsl/unknown_argument.rb
hyperdrive-0.0.20 lib/hyperdrive/errors/dsl/unknown_argument.rb
hyperdrive-0.0.19 lib/hyperdrive/errors/dsl/unknown_argument.rb
hyperdrive-0.0.18 lib/hyperdrive/errors/dsl/unknown_argument.rb
hyperdrive-0.0.17 lib/hyperdrive/errors/dsl/unknown_argument.rb
hyperdrive-0.0.16 lib/hyperdrive/errors/dsl/unknown_argument.rb
hyperdrive-0.0.15 lib/hyperdrive/errors/dsl/unknown_argument.rb
hyperdrive-0.0.14 lib/hyperdrive/errors/dsl/unknown_argument.rb
hyperdrive-0.0.13 lib/hyperdrive/errors/dsl/unknown_argument.rb
hyperdrive-0.0.12 lib/hyperdrive/errors/dsl/unknown_argument.rb
hyperdrive-0.0.11 lib/hyperdrive/errors/dsl/unknown_argument.rb
hyperdrive-0.0.10 lib/hyperdrive/errors/dsl/unknown_argument.rb
hyperdrive-0.0.9 lib/hyperdrive/errors/dsl/unknown_argument.rb
hyperdrive-0.0.8 lib/hyperdrive/errors/dsl/unknown_argument.rb
hyperdrive-0.0.7 lib/hyperdrive/errors/dsl/unknown_argument.rb