* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ declare(strict_types=1); namespace PrestaShop\PrestaShop\Core\Domain\Attachment\Exception; use PrestaShop\PrestaShop\Core\File\Exception\CannotUnlinkFileException; use Throwable; /** * Thrown when file unlink fails */ class CannotUnlinkAttachmentException extends CannotUnlinkFileException { /** * @var string */ private $filePath = ''; /** * @param string $message * @param int $code */ public function __construct($message = '', $code = 0, Throwable $previous = null, string $filePath = '') { parent::__construct($message, $code, $previous); $this->filePath = $filePath; } public function getFilePath(): string { return $this->filePath; } }