Class CommandTransferException
Exception thrown when transferring commands in parallel
- Exception
- Guzzle\Common\Exception\ExceptionCollection implements Guzzle\Common\Exception\GuzzleException, IteratorAggregate, Countable
- Guzzle\Http\Exception\MultiTransferException
- Guzzle\Service\Exception\CommandTransferException
Located at Guzzle/Service/Exception/CommandTransferException.php
Methods summary
-
public static
fromMultiTransferException ( Guzzle\Http\Exception\MultiTransferException $e )
Creates a new CommandTransferException from a MultiTransferException
-
public
getAllCommands ( )
Get all of the commands in the transfer
-
public
addSuccessfulCommand ( Guzzle\Service\Command\CommandInterface $command )
Add to the array of successful commands
-
public
addFailedCommand ( Guzzle\Service\Command\CommandInterface $command )
Add to the array of failed commands
-
public
getSuccessfulCommands ( )
Get an array of successful commands
-
public
getFailedCommands ( )
Get an array of failed commands
-
public
getExceptionForFailedCommand ( Guzzle\Service\Command\CommandInterface $command )
Get the Exception that caused the given $command to fail
Methods detail
public static
Guzzle\Service\Exception\CommandTransferException
fromMultiTransferException( Guzzle\Http\Exception\MultiTransferException
$e )
Creates a new CommandTransferException from a MultiTransferException
Parameters
- $e
Guzzle\Http\Exception\MultiTransferException
$e Exception to base a new exception on
Returns
Get all of the commands in the transfer
Returns
array
public
Guzzle\Service\Exception\CommandTransferException
addSuccessfulCommand( Guzzle\Service\Command\CommandInterface
$command )
Add to the array of successful commands
Parameters
- $command
Guzzle\Service\Command\CommandInterface
$command Successful command
Returns
public
Guzzle\Service\Exception\CommandTransferException
addFailedCommand( Guzzle\Service\Command\CommandInterface
$command )
Add to the array of failed commands
Parameters
- $command
Guzzle\Service\Command\CommandInterface
$command Failed command
Returns
Get an array of successful commands
Returns
array
Get an array of failed commands
Returns
array
public
Exception
|null
getExceptionForFailedCommand( Guzzle\Service\Command\CommandInterface
$command )
Get the Exception that caused the given $command to fail
Parameters
- $command
Guzzle\Service\Command\CommandInterface
$command Failed command
Returns
Exception
|null
Methods inherited from Guzzle\Http\Exception\MultiTransferException
addFailedRequest()
,
addFailedRequestWithException()
,
addSuccessfulRequest()
,
containsRequest()
,
getAllRequests()
,
getExceptionForFailedRequest()
,
getFailedRequests()
,
getSuccessfulRequests()
,
setFailedRequests()
,
setSuccessfulRequests()
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
|
$successfulCommands | |
protected
array
|
$failedCommands |
Properties inherited from Guzzle\Http\Exception\MultiTransferException
$exceptionForRequest
,
$failedRequests
,
$successfulRequests