file_exceptions.php

来自「php源码 php源码参考」· PHP 代码 · 共 37 行

PHP
37
字号
<?phpclass fileOpenException extends Exception{  function __toString()  {       return 'fileOpenException '. $this->getCode()              . ': '. $this->getMessage().'<br />'.' in '              . $this->getFile(). ' on line '. $this->getLine()              . '<br />';   }}class fileWriteException extends Exception{  function __toString()  {       return 'fileWriteException '. $this->getCode()              . ': '. $this->getMessage().'<br />'.' in '              . $this->getFile(). ' on line '. $this->getLine()              . '<br />';   }}class fileLockException extends Exception{  function __toString()  {       return 'fileLockException '. $this->getCode()              . ': '. $this->getMessage().'<br />'.' in '              . $this->getFile(). ' on line '. $this->getLine()              . '<br />';   }}?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?