Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 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
    public static function errorHandlerCallback(int $code, string $string, string $file, int $line): void
15
    {
16
        $e = new self($string, $code);
17
        $e->line = $line;
18
        $e->file = $file;
19
 
20
        throw $e;
21
    }
22
}