| 511 | |
| 512 | # access to error code via @errno of CsError |
| 513 | class CsError(Exception): |
| 514 | def __init__(self, errno): |
| 515 | self.errno = errno |
| 516 | |
| 517 | if _python2: |
| 518 | def __str__(self): |
| 519 | return _cs.cs_strerror(self.errno) |
| 520 | |
| 521 | else: |
| 522 | def __str__(self): |
| 523 | return _cs.cs_strerror(self.errno).decode() |
| 524 | |
| 525 | |
| 526 | # return the core's version |
no outgoing calls
no test coverage detected
searching dependent graphs…