Exception.php 634 B

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