Raises an exception if the status code is anything else than 0 (good). Use the is_good() method if you do not want an exception.
(self)
| 209 | self._freeze = True |
| 210 | |
| 211 | def check(self): |
| 212 | """ |
| 213 | Raises an exception if the status code is anything else than 0 (good). |
| 214 | |
| 215 | Use the is_good() method if you do not want an exception. |
| 216 | """ |
| 217 | if not self.is_good(): |
| 218 | raise UaStatusCodeError(self.value) |
| 219 | |
| 220 | def is_good(self): |
| 221 | """ |
no test coverage detected