【php开源代码栏目提醒】:网学会员php开源代码为您提供file_exceptions.php参考,解决您在file_exceptions.php学习中工作中的难题,参考学习。
<?php
class 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 />';
}
}
?>