d0a0bf32a2a15799e408420bcc3b591f9db18758
[WP-Plugins/glm-member-db-registrations.git] /
1 <?php
2 namespace PayPal\Exception;
3 class PPConnectionException extends \Exception
4 {
5         /**
6          * The url that was being connected to when the exception occured
7          * @var string
8          */
9         private $url;
10         
11         /**
12          * Any response data that was returned by the server
13          * @var string
14          */
15         private $data;
16
17         public function __construct($url, $message, $code = 0) {                
18                 parent::__construct($message, $code);
19                 $this->url = $url;              
20         }
21         
22         public function setData($data) {
23                 $this->data = $data;
24         }
25         
26         public function getData() {
27                 return $this->data;
28         }
29         
30         public function getUrl() {
31                 return $this->url;
32         }
33 }