Start project PHP Back.

50% routes.
This commit is contained in:
2026-03-20 11:40:11 +01:00
parent fedbf51c91
commit c36b95a15f
13 changed files with 555 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Exceptions;
/**
* Exception qui se déclenche lorsqu'un fichier de configuration n'a pas pu être chargé.
*
* - Peut se déclencher si un fichier de configuration non voulu.
*/
class ConfigFailedLoadingException extends \Exception {
/**
* Chemin vers le fichier de configuration manquant.
* @var string
*/
public private(set) string $configFilePath;
/**
* Constructeur.
* @param string $configFilePath Le fichier de configuration manquant.
*/
public function __construct( string $configFilePath ) {
$this->configFilePath = $configFilePath;
$this->message = "Failed to load configuration file '{$configFilePath}'.";
parent::__construct();
}
}