src/Execution/ErrorBuffer.php
protected function defaultExceptionResolver(): Closure
    {
        return function (string $errorMessage) {
            return (new GenericException($errorMessage))
                ->setExtensions([$this->errorType => $this->errors])
                ->setCategory($this->errorType);
        };
    }
protected function defaultExceptionResolver(): Closure
    {
        return function (string $errorMessage) {
            return (new GenericException($errorMessage))
                ->setExtensions([$this->errorType => $this->errors])
                ->setCategory($this->errorType);
        };
    }
protected function defaultExceptionResolver ( ) : Closure { return function ( string $ errorMessage ) { return ( new GenericException ( $ errorMessage ) ) -> setExtensions ( [ $ this -> errorType => $ this -> errors ] ) -> setCategory ( $ this -> errorType ) ; } ; }
Construct a default exception resolver.

@return \Closure
Construct a default exception resolver .