-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathACException.php
More file actions
50 lines (43 loc) · 1.01 KB
/
ACException.php
File metadata and controls
50 lines (43 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
namespace AfipClient;
use AfipClient\ACHelper;
use AfipClient\Clients\Client;
class ACException extends \Exception
{
protected $client;
protected $ws_response;
protected $ws_response_export;
/**
* @param string $message
* @param string $ws_response
* @param int $code
*/
public function __construct($message = '', Client $client = null, \stdClass $ws_response = NULL, $code = 0)
{
parent::__construct($message, $code);
$this->ws_response = $ws_response;
$this->ws_response_export = $ws_response ? ACHelper::export_response($ws_response) : NULL;
$this->client = $client;
}
/**
* @return string
*/
public function getWSResponse()
{
return $this->ws_response;
}
/**
* @return stdClass
*/
public function getWSResponseExport()
{
return $this->ws_response_export;
}
/**
* @return Client
*/
public function getClient()
{
return $this->client;
}
}