src/BatchResult.php
public function getExceptions(): array
    {
        $exceptions = [];

        foreach ($this->exceptions as $request) {
            $exceptions[] = $this->exceptions[$request];
        }

        return $exceptions;
    }
public function getExceptions(): array
    {
        $exceptions = [];

        foreach ($this->exceptions as $request) {
            $exceptions[] = $this->exceptions[$request];
        }

        return $exceptions;
    }
public function getExceptions ( ) : array { $ exceptions = [ ] ; foreach ( $ this -> exceptions as $ request ) { $ exceptions [ ] = $ this -> exceptions [ $ request ] ; } return $ exceptions ; }
Returns all exceptions for the unsuccessful requests.

@return ClientExceptionInterface[]
Returns all exceptions for the unsuccessful requests .