3 class Requests_Exception_Transport_cURL extends Requests_Exception_Transport {
5 const EASY = 'cURLEasy';
6 const MULTI = 'cURLMulti';
7 const SHARE = 'cURLShare';
17 * Which type of cURL error
23 protected $type = 'Unknown';
26 * Clear text error message
30 protected $reason = 'Unknown';
32 public function __construct($message, $type, $data = null, $code = 0) {
41 if ($message !== null) {
42 $this->reason = $message;
45 $message = sprintf('%d %s', $this->code, $this->reason);
46 parent::__construct($message, $this->type, $data, $this->code);
50 * Get the error message
52 public function getReason() {