for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Thruster\Component\HttpRouter\Exception;
use FastRoute\BadRouteException;
/**
* Class InvalidRouteOptionsException
*
* @package Thruster\Component\HttpRouter\Exception
* @author Aurimas Niekis <[email protected]>
*/
class InvalidRouteOptionsException extends \Exception
{
public function __construct($routeName, BadRouteException $exception = null)
if (null === $exception) {
$message = sprintf(
'Invalid options specified for route "%s"',
$routeName
);
} else {
'Error for route "%s": %s',
$routeName,
$exception->getMessage()
}
parent::__construct($message);