/** * Class constructor. * Calls the parent Exception constructor. * @param string $name the route which could not be found. * @param null|\Exception $previousException */ public function __construct($name, \Exception $previousException = null) { parent::__construct(sprintf("The route `%s` could not be found.", $name), 0, $previousException); }
/** * Class constructor. * Calls the parent Exception constructor. * @param string $name the parameter name used * @param null|\Exception $previousException */ public function __construct($name, \Exception $previousException = null) { parent::__construct(sprintf("The parameter `%s` is not available.", $name), 0, $previousException); }
/** * Class constructor. * Calls the parent Exception constructor. * @param string $routeName the route name * @param string $invalidPath the path which is not valid * @param null|\Exception $previousException */ public function __construct($routeName, $invalidPath, \Exception $previousException = null) { parent::__construct(sprintf("The path `%s` is invalid for the route `%s`.", $invalidPath, $routeName), 0, $previousException); }
/** * Class constructor. * Calls the parent Exception constructor. * @param string $name the route name already existing * @param null|\Exception $previousException */ public function __construct($name, \Exception $previousException = null) { parent::__construct(sprintf("The route `%s` does already exist.", $name), 0, $previousException); }
/** * Class constructor. * Calls the parent Exception constructor. * @param null|\Exception $previousException */ public function __construct(\Exception $previousException = null) { parent::__construct("No matching route could be found.", 0, $previousException); }
/** * Class constructor. * Calls the parent Exception constructor. * @param string $routeName the route name * @param string[] $parametersMissed the parameters missed as array values * @param null|\Exception $previousException */ public function __construct($routeName, array $parametersMissed, \Exception $previousException = null) { parent::__construct(sprintf("The route `%s` requires missing parameter(s) `%s`.", $routeName, implode(", ", array_values($parametersMissed))), 0, $previousException); }