-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqueryException.php
More file actions
50 lines (38 loc) · 909 Bytes
/
Copy pathqueryException.php
File metadata and controls
50 lines (38 loc) · 909 Bytes
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 neoData;
class queryException extends \Exception {
private $fullName;
private $params;
private $query;
private $stackTrace;
private $type;
private $url;
public function __construct($http_code, $res, $query, $url, $params = null) {
parent::__construct($res['message'], $http_code);
$this->type = $res['exception'];
$this->fullName = $res['fullname'];
$this->stackTrace = $res['stacktrace'];
$this->params = $params;
$this->query = $query;
$this->url = $url;
}
public function getFullName() {
return $this->fullName;
}
public function getParams() {
return $this->params;
}
public function getQuery() {
return $this->query;
}
public function getStackTrace() {
return $this->stackTrace();
}
public function getType() {
return $this->type;
}
public function getUrl(){
return $this->url;
}
}
?>