PhpSandbox\PHPSandbox::exception PHP Méthode

exception() public méthode

Invoke sandbox exception handler
public exception ( Exception $exception ) : mixed
$exception Exception Error number
Résultat mixed
    public function exception(\Exception $exception)
    {
        $this->last_exception = $exception;
        if (is_callable($this->exception_handler)) {
            return call_user_func_array($this->exception_handler, [$exception, $this]);
        }
        throw $exception;
    }
PHPSandbox