| 35 | |
| 36 | |
| 37 | class NvmlException(Exception): |
| 38 | def __init__(self, error_code): |
| 39 | super(NvmlException, self).__init__(error_code) |
| 40 | self.error_code = error_code |
| 41 | |
| 42 | def __str__(self): |
| 43 | return NvmlErrorCodes[str(self.error_code)] |
| 44 | |
| 45 | |
| 46 | def _check_return(ret): |
no outgoing calls
no test coverage detected