[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/phpexcel/PHPExcel/Writer/ -> Exception.php (source)

   1  <?php
   2  
   3  /**
   4   * PHPExcel_Writer_Exception
   5   *
   6   * Copyright (c) 2006 - 2015 PHPExcel
   7   *
   8   * This library is free software; you can redistribute it and/or
   9   * modify it under the terms of the GNU Lesser General Public
  10   * License as published by the Free Software Foundation; either
  11   * version 2.1 of the License, or (at your option) any later version.
  12   *
  13   * This library is distributed in the hope that it will be useful,
  14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16   * Lesser General Public License for more details.
  17   *
  18   * You should have received a copy of the GNU Lesser General Public
  19   * License along with this library; if not, write to the Free Software
  20   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  21   *
  22   * @category   PHPExcel
  23   * @package    PHPExcel_Writer
  24   * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
  25   * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
  26   * @version    ##VERSION##, ##DATE##
  27   */
  28  class PHPExcel_Writer_Exception extends PHPExcel_Exception
  29  {
  30      /**
  31       * Error handler callback
  32       *
  33       * @param mixed $code
  34       * @param mixed $string
  35       * @param mixed $file
  36       * @param mixed $line
  37       * @param mixed $context
  38       */
  39      public static function errorHandlerCallback($code, $string, $file, $line, $context)
  40      {
  41          $e = new self($string, $code);
  42          $e->line = $line;
  43          $e->file = $file;
  44          throw $e;
  45      }
  46  }


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1