Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/main/lib/io/ |
Upload File : |
<?php namespace Bitrix\Main\IO; /** * This exception is thrown when an I/O error occurs. */ class IoException extends \Bitrix\Main\SystemException { protected $path; /** * Creates new exception object. * * @param string $message Exception message * @param string $path Path that generated exception. * @param \Throwable | null $previous */ public function __construct($message = "", $path = "", \Throwable $previous = null) { parent::__construct($message, 120, '', 0, $previous); $this->path = $path; } /** * Path that generated exception. * * @return string */ public function getPath() { return $this->path; } } class InvalidPathException extends IoException { public function __construct($path, \Throwable $previous = null) { $message = "Path is invalid."; parent::__construct($message, $path, $previous); } } class FileNotFoundException extends IoException { public function __construct($path, \Throwable $previous = null) { $message = "Path was not found."; parent::__construct($message, $path, $previous); } } class FileDeleteException extends IoException { public function __construct($path, \Throwable $previous = null) { $message = "Error occurred during deleting the file."; parent::__construct($message, $path, $previous); } } class FileOpenException extends IoException { public function __construct($path, \Throwable $previous = null) { $message = "Cannot open the file."; parent::__construct($message, $path, $previous); } } class FileNotOpenedException extends IoException { public function __construct($path, \Throwable $previous = null) { $message = "The file was not opened."; parent::__construct($message, $path, $previous); } }