Exemplo n.º 1
0
 /**
  * Builds a new TailShellException object.
  *
  * @param string $filename the name of targeted file
  * @param int $nblines the number of lines that were demanded
  * @param int $hint an estimation of the line length in that file
  */
 public function __construct($filename, $nblines, $hint)
 {
     parent::__construct($filename, $nblines, $hint, strtr('Error in reading file {filename}', array('{filename}' => $filename)), 500);
 }
Exemplo n.º 2
0
 /**
  * Builds a new FileTooBigException object.
  *
  * @param string $filename the name of targeted file
  * @param int $nblines the number of lines that were demanded
  * @param int $hint an estimation of the line length in that file
  */
 public function __construct($filename, $nblines, $hint)
 {
     parent::__construct($filename, $nblines, $hint, strtr('File {filename} is too big to be read.', array('{filename}' => $filename)), 500);
 }
Exemplo n.º 3
0
 /**
  * Builds a new FileNotFoundException object.
  *
  * @param string $filename the name of targeted file
  * @param int $nblines the number of lines that were demanded
  * @param int $hint an estimation of the line length in that file
  */
 public function __construct($filename, $nblines, $hint)
 {
     parent::__construct($filename, $nblines, $hint, strtr('The file "{file}" does not exists.', array('{file}' => $filename)), 404);
 }
Exemplo n.º 4
0
 /**
  * Builds a new IllegalOsException object.
  *
  * @param string $filename the name of targeted file
  * @param int $nblines the number of lines that were demanded
  * @param int $hint an estimation of the line length in that file
  */
 public function __construct($filename, $nblines, $hint)
 {
     parent::__construct($filename, $nblines, $hint, 'You can\'t try to call unix\'s tail function on a non unix system.', 500);
 }
Exemplo n.º 5
0
 /**
  * Builds a new OutputBufferException object.
  *
  * @param string $filename the name of targeted file
  * @param int $nblines the number of lines that were demanded
  * @param int $hint an estimation of the line length in that file
  */
 public function __construct($filename, $nblines, $hint)
 {
     parent::__construct($filename, $nblines, $hint, "Error when using the output buffer.", 500);
 }