Sha256: c8185bc95a2025806987f167c6d21e6b2dad8cbfcb9b714bc5c4ed440253595b

Contents?: true

Size: 490 Bytes

Versions: 4

Compression:

Stored size: 490 Bytes

Contents

module Galago
  class Router
    class ActionInvalid < ArgumentError
      def initialize(action)
        @action = action
      end

      def message
        "Action does not have a call method: #{@action.inspect}"
      end
    end

    class RequestMethodInvalid < ArgumentError
      def initialize(request_method)
        @request_method = request_method
      end

      def message
        "Got: #{@request_method}\nExpected one of: #{REQUEST_METHODS}"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
galago-router-0.2.0 lib/galago/router/errors.rb
galago-router-0.1.1 lib/galago/router/errors.rb
galago-router-0.1.0 lib/galago/router/errors.rb
galago-router-0.0.2 lib/galago/router/errors.rb