Exception.php 790 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. /**
  8. * PHPExcel_Exception
  9. *
  10. * @category PHPExcel
  11. * @package PHPExcel
  12. * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
  13. */
  14. class PHPExcel_Exception extends Exception
  15. {
  16. /**
  17. * Error handler callback
  18. *
  19. * @param mixed $code
  20. * @param mixed $string
  21. * @param mixed $file
  22. * @param mixed $line
  23. * @param mixed $context
  24. */
  25. public static function errorHandlerCallback($code, $string, $file, $line, $context)
  26. {
  27. $e = new self($string, $code);
  28. $e->line = $line;
  29. $e->file = $file;
  30. throw $e;
  31. }
  32. }