1 | <?php |
||
9 | final class QueryError |
||
10 | { |
||
11 | /** @var string */ |
||
12 | private $message = ''; |
||
13 | |||
14 | /** @var string */ |
||
15 | private $sqlState = ''; |
||
16 | |||
17 | /** @var int */ |
||
18 | private $errorCode; |
||
19 | |||
20 | /** @var string */ |
||
21 | private $errorName; |
||
22 | |||
23 | /** @var string */ |
||
24 | private $errorType; |
||
25 | |||
26 | /** @var \stdClass */ |
||
27 | private $failureInfo; |
||
28 | |||
29 | /** |
||
30 | * QueryError constructor. |
||
31 | * |
||
32 | * @param \stdClass $jsonContent |
||
33 | */ |
||
34 | public function __construct(\stdClass $jsonContent) |
||
43 | |||
44 | /** |
||
45 | * @return string |
||
46 | */ |
||
47 | public function getMessage(): string |
||
51 | |||
52 | /** |
||
53 | * @return string |
||
54 | */ |
||
55 | public function getSqlState(): string |
||
59 | |||
60 | /** |
||
61 | * @return int |
||
62 | */ |
||
63 | public function getErrorCode(): int |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getErrorName(): string |
||
75 | |||
76 | /** |
||
77 | * @return string |
||
78 | */ |
||
79 | public function getErrorType(): string |
||
83 | |||
84 | /** |
||
85 | * @return \stdClass |
||
86 | */ |
||
87 | public function getFailureInfo(): \stdClass |
||
91 | } |
||
92 |