mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°8772 - log for exception
This commit is contained in:
@@ -6,7 +6,14 @@
|
||||
|
||||
namespace Combodo\iTop\Forms;
|
||||
|
||||
use IssueLog;
|
||||
use Throwable;
|
||||
|
||||
class FormsException extends \Exception
|
||||
{
|
||||
|
||||
public function __construct(string $message = '', int $code = 0, ?Throwable $previous = null, array $aContext = [])
|
||||
{
|
||||
IssueLog::Exception(get_class($this).' occurs', $this, null, $aContext);
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user