Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
3
namespace PhpOffice\PhpSpreadsheet\Calculation;
4
 
5
use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
6
 
7
class Exception extends PhpSpreadsheetException
8
{
9
    public const CALCULATION_ENGINE_PUSH_TO_STACK = 1;
10
 
11
    /**
12
     * Error handler callback.
13
     *
14
     * @param mixed $code
15
     * @param mixed $string
16
     * @param mixed $file
17
     * @param mixed $line
18
     * @param mixed $context
19
     */
20
    public static function errorHandlerCallback($code, $string, $file, $line, /** @scrutinizer ignore-unused */ $context): void
21
    {
22
        $e = new self($string, $code);
23
        $e->line = $line;
24
        $e->file = $file;
25
 
26
        throw $e;
27
    }
28
}