protected function exceptions(\Exception $exception, $uri)
    {
        $interface = 'Phroute\Phroute\Exception\HttpRouteNotFoundException';

        $message = (string) $exception->getMessage();

        is_a($exception, $interface) && $message = 'Route "' . $uri . '" not found';

        throw new \UnexpectedValueException((string) $message);
    }
protected function exceptions(\Exception $exception, $uri)
    {
        $interface = 'Phroute\Phroute\Exception\HttpRouteNotFoundException';

        $message = (string) $exception->getMessage();

        is_a($exception, $interface) && $message = 'Route "' . $uri . '" not found';

        throw new \UnexpectedValueException((string) $message);
    }
Returns exceptions based on catched error.

@param \Exception $exception
@param string     $uri

@throws \UnexpectedValueException