function ParamNotConvertedException::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/ParamConverter/ParamNotConvertedException.php \Drupal\Core\ParamConverter\ParamNotConvertedException::__construct()
- 8.9.x core/lib/Drupal/Core/ParamConverter/ParamNotConvertedException.php \Drupal\Core\ParamConverter\ParamNotConvertedException::__construct()
- 10 core/lib/Drupal/Core/ParamConverter/ParamNotConvertedException.php \Drupal\Core\ParamConverter\ParamNotConvertedException::__construct()
Constructs the ParamNotConvertedException.
Parameters
string $message: The Exception message to throw.
int $code: The Exception code.
\Exception $previous: The previous exception used for the exception chaining.
string $route_name: The route name that was not converted.
array $raw_parameters: The raw parameters that were not converted.
File
-
core/
lib/ Drupal/ Core/ ParamConverter/ ParamNotConvertedException.php, line 38
Class
- ParamNotConvertedException
- Provides an exception class for a request parameter that was not converted.
Namespace
Drupal\Core\ParamConverterCode
public function __construct($message = "", $code = 0, ?\Exception $previous = NULL, $route_name = "", array $raw_parameters = []) {
parent::__construct($message, $code, $previous);
$this->routeName = $route_name;
$this->rawParameters = $raw_parameters;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.