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 staticfromMultiTransferException ( Guzzle\Http\Exception\MultiTransferException $e )Creates a new CommandTransferException from a MultiTransferException
-
publicgetAllCommands ( )Get all of the commands in the transfer
-
publicaddSuccessfulCommand ( Guzzle\Service\Command\CommandInterface $command )Add to the array of successful commands
-
publicaddFailedCommand ( Guzzle\Service\Command\CommandInterface $command )Add to the array of failed commands
-
publicgetSuccessfulCommands ( )Get an array of successful commands
-
publicgetFailedCommands ( )Get an array of failed commands
-
publicgetExceptionForFailedCommand ( 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
arrayGet 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|nullMethods 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