ConfigEntryNotFoundException.php 388 B

123456789101112131415
  1. <?php
  2. namespace app\Exceptions;
  3. use app\Logger;
  4. use \Exception;
  5. use \Throwable;
  6. class ConfigEntryNotFoundException extends Exception {
  7. public function __construct(string $config = "", int $code = 0, ?Throwable $previous = null)
  8. {
  9. Logger::Error("Couldn't find config key entry ($config)");
  10. parent::__construct("Couldn't find config key entry ($config)", $code, $previous);
  11. }
  12. }