Class MultiTransferException
Exception encountered during a multi transfer
- Exception
- Guzzle\Common\Exception\ExceptionCollection implements Guzzle\Common\Exception\GuzzleException, IteratorAggregate, Countable
- Guzzle\Http\Exception\MultiTransferException
Direct known subclasses
Methods summary
-
public
getAllRequests ( )
Get all of the requests in the transfer
-
public
addSuccessfulRequest ( Guzzle\Http\Message\RequestInterface $request )
Add to the array of successful requests
-
public
addFailedRequest ( Guzzle\Http\Message\RequestInterface $request )
Add to the array of failed requests
-
public
addFailedRequestWithException ( Guzzle\Http\Message\RequestInterface $request, Exception $exception )
Add to the array of failed requests and associate with exceptions
-
public
getExceptionForFailedRequest ( Guzzle\Http\Message\RequestInterface $request )
Get the Exception that caused the given $request to fail
-
public
setSuccessfulRequests ( array $requests )
Set all of the successful requests
-
public
setFailedRequests ( array $requests )
Set all of the failed requests
-
public
getSuccessfulRequests ( )
Get an array of successful requests sent in the multi transfer
-
public
getFailedRequests ( )
Get an array of failed requests sent in the multi transfer
-
public
containsRequest ( Guzzle\Http\Message\RequestInterface $request )
Check if the exception object contains a request
Methods detail
Get all of the requests in the transfer
Returns
array
public
Guzzle\Http\Exception\MultiTransferException
addSuccessfulRequest( Guzzle\Http\Message\RequestInterface
$request )
Add to the array of successful requests
Parameters
- $request
Guzzle\Http\Message\RequestInterface
$request Successful request
Returns
public
Guzzle\Http\Exception\MultiTransferException
addFailedRequest( Guzzle\Http\Message\RequestInterface
$request )
Add to the array of failed requests
Parameters
- $request
Guzzle\Http\Message\RequestInterface
$request Failed request
Returns
public
Guzzle\Http\Exception\MultiTransferException
addFailedRequestWithException( Guzzle\Http\Message\RequestInterface
$request, Exception
$exception )
Add to the array of failed requests and associate with exceptions
Parameters
- $request
Guzzle\Http\Message\RequestInterface
$request Failed request- $exception
Exception
$exception Exception to add and associate with
Returns
public
Exception
|null
getExceptionForFailedRequest( Guzzle\Http\Message\RequestInterface
$request )
Get the Exception that caused the given $request to fail
Parameters
- $request
Guzzle\Http\Message\RequestInterface
$request Failed command
Returns
Exception
|null
Set all of the successful requests
Parameters
- $requests
array
Array of requests
Returns
Set all of the failed requests
Parameters
- $requests
array
Array of requests
Returns
Get an array of successful requests sent in the multi transfer
Returns
array
Get an array of failed requests sent in the multi transfer
Returns
array
Check if the exception object contains a request
Parameters
- $request
Guzzle\Http\Message\RequestInterface
$request Request to check
Returns
boolean
Methods inherited from Guzzle\Common\Exception\ExceptionCollection
__construct()
,
add()
,
count()
,
getFirst()
,
getIterator()
,
setExceptions()
Methods inherited from Exception
__toString()
,
__wakeup()
,
getCode()
,
getFile()
,
getLine()
,
getMessage()
,
getPrevious()
,
getTrace()
,
getTraceAsString()
Magic methods summary
Properties summary
protected
array
|
$successfulRequests | |
protected
array
|
$failedRequests | |
protected
array
|
$exceptionForRequest |