Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
nonloggedexceptiondecorator.php
1<?php
2
3declare(strict_types=1);
4
5namespace Bitrix\Rest;
6
7use Exception;
8
9final class NonLoggedExceptionDecorator extends Exception
10{
11 private Exception $originalException;
12
13 public function __construct(Exception $exception)
14 {
15 $this->originalException = $exception;
16
17 parent::__construct(
18 $exception->getMessage(),
19 $exception->getCode(),
20 $exception->getPrevious()
21 );
22 }
23
24 public function getOriginalException(): Exception
25 {
26 return $this->originalException;
27 }
28}