<?php
	
	namespace Install\Handlers;
	
	use Pecee\Http\Request;
	use Pecee\SimpleRouter\Exceptions\NotFoundHttpException;
	use Pecee\SimpleRouter\Handlers\IExceptionHandler;
	
	class RouteExceptionHandler implements IExceptionHandler
	{
		/**
		 * @param Request $request
		 * @param \Exception $error
		 * @throws \Exception
		 */
		public function handleError(Request $request, \Exception $error): void
		{
			throw $error;
		}
		
	}