Class Guzzle\Service\Exception\CommandTransferException

InheritanceGuzzle\Service\Exception\CommandTransferException » Guzzle\Http\Exception\MultiTransferException » Guzzle\Common\Exception\ExceptionCollection » Exception
ImplementsCountable, Guzzle\Common\Exception\GuzzleException, IteratorAggregate

Exception thrown when transferring commands in parallel

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Guzzle\Common\Exception\ExceptionCollection
add() Add exceptions to the collection Guzzle\Common\Exception\ExceptionCollection
addFailedCommand() Add to the array of failed commands Guzzle\Service\Exception\CommandTransferException
addFailedRequest() Add to the array of failed requests Guzzle\Http\Exception\MultiTransferException
addFailedRequestWithException() Add to the array of failed requests and associate with exceptions Guzzle\Http\Exception\MultiTransferException
addSuccessfulCommand() Add to the array of successful commands Guzzle\Service\Exception\CommandTransferException
addSuccessfulRequest() Add to the array of successful requests Guzzle\Http\Exception\MultiTransferException
containsRequest() Check if the exception object contains a request Guzzle\Http\Exception\MultiTransferException
count() Get the total number of request exceptions Guzzle\Common\Exception\ExceptionCollection
fromMultiTransferException() Creates a new CommandTransferException from a MultiTransferException Guzzle\Service\Exception\CommandTransferException
getAllCommands() Get all of the commands in the transfer Guzzle\Service\Exception\CommandTransferException
getAllRequests() Get all of the requests in the transfer Guzzle\Http\Exception\MultiTransferException
getExceptionForFailedCommand() Get the Exception that caused the given $command to fail Guzzle\Service\Exception\CommandTransferException
getExceptionForFailedRequest() Get the Exception that caused the given $request to fail Guzzle\Http\Exception\MultiTransferException
getFailedCommands() Get an array of failed commands Guzzle\Service\Exception\CommandTransferException
getFailedRequests() Get an array of failed requests sent in the multi transfer Guzzle\Http\Exception\MultiTransferException
getFirst() Get the first exception in the collection Guzzle\Common\Exception\ExceptionCollection
getIterator() Allows array-like iteration over the request exceptions Guzzle\Common\Exception\ExceptionCollection
getSuccessfulCommands() Get an array of successful commands Guzzle\Service\Exception\CommandTransferException
getSuccessfulRequests() Get an array of successful requests sent in the multi transfer Guzzle\Http\Exception\MultiTransferException
setExceptions() Set all of the exceptions Guzzle\Common\Exception\ExceptionCollection
setFailedRequests() Set all of the failed requests Guzzle\Http\Exception\MultiTransferException
setSuccessfulRequests() Set all of the successful requests Guzzle\Http\Exception\MultiTransferException

Property Details

$failedCommands protected property
protected $failedCommands = []
$successfulCommands protected property
protected $successfulCommands = []

Method Details

addFailedCommand() public method

Add to the array of failed commands

public self addFailedCommand ( Guzzle\Service\Command\CommandInterface $command )
$command Guzzle\Service\Command\CommandInterface

Failed command

addSuccessfulCommand() public method

Add to the array of successful commands

public self addSuccessfulCommand ( Guzzle\Service\Command\CommandInterface $command )
$command Guzzle\Service\Command\CommandInterface

Successful command

fromMultiTransferException() public static method

Creates a new CommandTransferException from a MultiTransferException

public static self fromMultiTransferException ( Guzzle\Http\Exception\MultiTransferException $e )
$e Guzzle\Http\Exception\MultiTransferException

Exception to base a new exception on

getAllCommands() public method

Get all of the commands in the transfer

public array getAllCommands ( )
getExceptionForFailedCommand() public method

Get the Exception that caused the given $command to fail

public Exception|null getExceptionForFailedCommand ( Guzzle\Service\Command\CommandInterface $command )
$command Guzzle\Service\Command\CommandInterface

Failed command

getFailedCommands() public method

Get an array of failed commands

public array getFailedCommands ( )
getSuccessfulCommands() public method

Get an array of successful commands

public array getSuccessfulCommands ( )