MissingMandatoryParametersException When some parameters are missing that mandatory for the route
InvalidParameterException When a parameter value for a placeholder is not correct because it does not match the requirement
Overrides UrlGenerator::doGenerate
protected function doGenerate($variables, $defaults, $requirements, $tokens, $parameters, $name, $absolute, $hostTokens = null) {
return 'result_url';
}