1 | <?php |
||
23 | class SaudiAddressException extends \Exception |
||
24 | { |
||
25 | /** |
||
26 | * The response headers sent by Saudi National Address. |
||
27 | * |
||
28 | * @var array |
||
29 | */ |
||
30 | protected $headers = []; |
||
31 | |||
32 | /** |
||
33 | * The error code returned by Saudi National Address. |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $errorCode; |
||
38 | |||
39 | /** |
||
40 | * The error type returned by Saudi National Address. |
||
41 | * |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $errorType; |
||
45 | |||
46 | /** |
||
47 | * The missing parameter returned by Saudi National Address with the error. |
||
48 | * |
||
49 | * @var string |
||
50 | */ |
||
51 | protected $missingParameter; |
||
52 | |||
53 | /** |
||
54 | * The raw output returned by Saudi National Address in case of exception. |
||
55 | * |
||
56 | * @var string |
||
57 | */ |
||
58 | protected $rawOutput; |
||
59 | |||
60 | /** |
||
61 | * Returns the response headers sent by Saudi National Address. |
||
62 | * |
||
63 | * @return array |
||
64 | */ |
||
65 | public function getHeaders() |
||
69 | |||
70 | /** |
||
71 | * Sets the response headers sent by Saudi National Address. |
||
72 | * |
||
73 | * @param array $headers |
||
74 | * @return $this |
||
75 | */ |
||
76 | public function setHeaders(array $headers) |
||
82 | |||
83 | /** |
||
84 | * Returns the error type returned by Saudi National Address. |
||
85 | * |
||
86 | * @return string |
||
87 | */ |
||
88 | public function getErrorCode() |
||
92 | |||
93 | /** |
||
94 | * Sets the error type returned by Saudi National Address. |
||
95 | * |
||
96 | * @param string $errorCode |
||
97 | * @return $this |
||
98 | */ |
||
99 | public function setErrorCode($errorCode) |
||
105 | |||
106 | /** |
||
107 | * Returns the error type returned by Saudi National Address. |
||
108 | * |
||
109 | * @return string |
||
110 | */ |
||
111 | public function getErrorType() |
||
115 | |||
116 | /** |
||
117 | * Sets the error type returned by Saudi National Address. |
||
118 | * |
||
119 | * @param string $errorType |
||
120 | * @return $this |
||
121 | */ |
||
122 | public function setErrorType($errorType) |
||
128 | |||
129 | /** |
||
130 | * Returns missing parameter returned by Saudi National Address with the error. |
||
131 | * |
||
132 | * @return string |
||
133 | */ |
||
134 | public function getMissingParameter() |
||
138 | |||
139 | /** |
||
140 | * Sets the missing parameter returned by Saudi National Address with the error. |
||
141 | * |
||
142 | * @param string $missingParameter |
||
143 | * @return $this |
||
144 | */ |
||
145 | public function setMissingParameter($missingParameter) |
||
151 | |||
152 | /** |
||
153 | * Returns raw output returned by Saudi National Address in case of exception. |
||
154 | * |
||
155 | * @return string |
||
156 | */ |
||
157 | public function getRawOutput() |
||
161 | |||
162 | /** |
||
163 | * Sets the raw output parameter returned by Saudi National Address in case of exception. |
||
164 | * |
||
165 | * @param string $rawOutput |
||
166 | * @return $this |
||
167 | */ |
||
168 | public function setRawOutput($rawOutput) |
||
174 | } |
||
175 |