*/ final class BatchException extends TransferException { /** * @var BatchResult */ private $result; /** * @param BatchResult $result */ public function __construct(BatchResult $result) { $this->result = $result; } /** * Returns the BatchResult that contains all responses and exceptions. * * @return BatchResult */ public function getResult() { return $this->result; } }