GuzzleHttp\Exception\RequestException::getHandlerContext PHP Method

getHandlerContext() public method

The contents of this array will vary depending on which handler you are using. It may also be just an empty array. Relying on this data will couple you to a specific handler, but can give more debug information when needed.
public getHandlerContext ( ) : array
return array
    public function getHandlerContext()
    {
        return $this->handlerContext;
    }

Usage Example

 public function testCanProvideHandlerContext()
 {
     $r = new Request('GET', 'http://www.oo.com');
     $e = new RequestException('foo', $r, null, null, ['bar' => 'baz']);
     $this->assertEquals(['bar' => 'baz'], $e->getHandlerContext());
 }
All Usage Examples Of GuzzleHttp\Exception\RequestException::getHandlerContext