module Galago class Router::ActionInvalid < ArgumentError def initialize(action) @action = action end def message "Action does not have a call method: #{@action.inspect}" end end class Router::RequestMethodInvalid < ArgumentError def initialize(request_method) @request_method = request_method end def message "Got: #{@request_method}\nExpected one of: #{REQUEST_METHODS}" end end end