Chris@14: Chris@14: * @author Anthon Pang Chris@14: * @author Gaetano Giunta Chris@14: */ Chris@14: Chris@14: namespace WebDriver\Exception; Chris@14: Chris@14: use WebDriver\Exception as BaseException; Chris@14: Chris@14: /** Chris@14: * WebDriver\Exception\CurlExec class Chris@14: * Chris@14: * @package WebDriver Chris@14: */ Chris@14: final class CurlExec extends BaseException Chris@14: { Chris@14: /** Chris@14: * @var array Chris@14: */ Chris@14: private $curlInfo = array(); Chris@14: Chris@14: /** Chris@14: * {@inheritdoc} Chris@14: */ Chris@14: public function __construct($message = null, $code = 0, \Exception $previous = null, $curlInfo = array()) Chris@14: { Chris@14: parent::__construct($message, $code, $previous); Chris@14: Chris@14: $this->curlInfo = $curlInfo; Chris@14: } Chris@14: Chris@14: /** Chris@14: * Get curl info Chris@14: * Chris@14: * @return array Chris@14: */ Chris@14: public function getCurlInfo() Chris@14: { Chris@14: return $this->curlInfo; Chris@14: } Chris@14: }