# visualizer/3.4.5/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Exception.php

Visualizer – Tables &amp; Charts Manager with Built-in AI Generator, version 3.4.5. 27 lines.

- Page: https://pluginprobe.com/plugins/visualizer/3.4.5/code/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Exception.php
- Raw: https://pluginprobe.com/plugins/visualizer/3.4.5/raw/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Exception.php
- Modified: 2020-07-08T14:32:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/visualizer/3.4.5/code/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Exception.php#L10-L20`.

```php
<?php

namespace PhpOffice\PhpSpreadsheet\Calculation;

use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;

class Exception extends PhpSpreadsheetException
{
    /**
     * Error handler callback.
     *
     * @param mixed $code
     * @param mixed $string
     * @param mixed $file
     * @param mixed $line
     * @param mixed $context
     */
    public static function errorHandlerCallback($code, $string, $file, $line, $context)
    {
        $e = new self($string, $code);
        $e->line = $line;
        $e->file = $file;

        throw $e;
    }
}

```
