Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/modules/rest/lib/
Upload File :
Current File : /var/www/homesaver/www/bitrix/modules/rest/lib/nonloggedexceptiondecorator.php

<?php

declare(strict_types=1);

namespace Bitrix\Rest;

use Exception;

final class NonLoggedExceptionDecorator extends Exception
{
	private Exception $originalException;

	public function __construct(Exception $exception)
	{
		$this->originalException = $exception;

		parent::__construct(
			$exception->getMessage(),
			$exception->getCode(),
			$exception->getPrevious()
		);
	}

	public function getOriginalException(): Exception
	{
		return $this->originalException;
	}
}