mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-18 16:18:47 +02:00
🎨 N°8772 - Moved DI under Service
This commit is contained in:
20
sources/Service/DependencyInjection/DIException.php
Normal file
20
sources/Service/DependencyInjection/DIException.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* @copyright Copyright (C) 2010-2025 Combodo SAS
|
||||
* @license http://opensource.org/licenses/AGPL-3.0
|
||||
*/
|
||||
|
||||
namespace Combodo\iTop\Service\DependencyInjection;
|
||||
|
||||
use IssueLog;
|
||||
use Throwable;
|
||||
|
||||
class DIException extends \Exception
|
||||
{
|
||||
public function __construct(string $sMessage = '', int $iCode = 0, ?Throwable $oPrevious = null, array $aContext = [])
|
||||
{
|
||||
parent::__construct($sMessage, $iCode, $oPrevious);
|
||||
IssueLog::Exception(get_class($this).' occurs: '.$sMessage, $this, null, $aContext);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user