Source for file FileIO.php

Documentation is available at FileIO.php

  1. <?PHP
  2. /**
  3. * FIT custom exception
  4. *
  5. * $Id$
  6. *
  7. * @author Luis A. Floreani <luis.floreani@gmail.com>
  8. * @author gERD Schaufelberger <gerd@php-tools.net>
  9. * @package FIT
  10. * @subpackage FileRunner
  11. * @license LGPL http://www.gnu.org/copyleft/lesser.html
  12. * @copyright Copyright (c) 2002-2005 Cunningham & Cunningham, Inc.
  13. */
  14.  
  15. /**
  16. * FIT custom exception: FileIO
  17. *
  18. * $e = new PHPFIT_Exception_FileIO( 'Message', 'path/to/file' );
  19. *
  20. * @version 0.1.0
  21. * @package FIT
  22. * @subpackage Exception
  23. */
  24. class PHPFIT_Exception_FileIO extends Exception
  25. {
  26. /**
  27. * Exception with filename
  28. * @var string
  29. */
  30. private $filename;
  31.  
  32. /**
  33. * constructor
  34. *
  35. * @param string $message exception message
  36. * @param string $fiename
  37. * @see Exception
  38. */
  39. function __construct( $msg, $filename )
  40. {
  41. $this->message = $msg;
  42. $this->filename = $filename;
  43. }
  44.  
  45. /**
  46. * receive filename
  47. *
  48. * @return string name of the file
  49. */
  50. function getFilename()
  51. {
  52. return $this->filename;
  53. }
  54. }
  55. ?>

Documentation generated on Sun, 02 Apr 2006 23:21:37 +0000 by phpDocumentor 1.3.0RC5