Exception thrown for internal openSMILE errors.
| 212 | |
| 213 | |
| 214 | class OpenSmileException(Exception): |
| 215 | """ |
| 216 | Exception thrown for internal openSMILE errors. |
| 217 | """ |
| 218 | |
| 219 | def __init__(self, code: int, message: Optional[str] = None): |
| 220 | self.code = code |
| 221 | self.message = message |
| 222 | |
| 223 | def __str__(self): |
| 224 | if self.message: |
| 225 | return "Code: {}, Message: {}".format(self.code, self.message) |
| 226 | else: |
| 227 | return "Code: {}".format(self.code) |
| 228 | |
| 229 | |
| 230 | class OpenSMILE(object): |
no outgoing calls
no test coverage detected