1 | <?php |
||
25 | final class QueryError |
||
26 | { |
||
27 | /** @var string */ |
||
28 | private $message = ''; |
||
29 | |||
30 | /** @var string */ |
||
31 | private $sqlState = ''; |
||
32 | |||
33 | /** @var int */ |
||
34 | private $errorCode; |
||
35 | |||
36 | /** @var string */ |
||
37 | private $errorName; |
||
38 | |||
39 | /** @var string */ |
||
40 | private $errorType; |
||
41 | |||
42 | /** @var \stdClass */ |
||
43 | private $failureInfo; |
||
44 | |||
45 | /** |
||
46 | * QueryError constructor. |
||
47 | * |
||
48 | * @param \stdClass $jsonContent |
||
49 | */ |
||
50 | public function __construct(\stdClass $jsonContent) |
||
59 | |||
60 | /** |
||
61 | * @return string |
||
62 | */ |
||
63 | public function getMessage(): string |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getSqlState(): string |
||
75 | |||
76 | /** |
||
77 | * @return int |
||
78 | */ |
||
79 | public function getErrorCode(): int |
||
83 | |||
84 | /** |
||
85 | * @return string |
||
86 | */ |
||
87 | public function getErrorName(): string |
||
91 | |||
92 | /** |
||
93 | * @return string |
||
94 | */ |
||
95 | public function getErrorType(): string |
||
99 | |||
100 | /** |
||
101 | * @return \stdClass |
||
102 | */ |
||
103 | public function getFailureInfo(): \stdClass |
||
107 | } |
||
108 |