Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/ParamConverter/ParamNotConvertedException.php \Drupal\Core\ParamConverter\ParamNotConvertedException::__construct()
  2. 9 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\ParamConverter

Code

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;
}