ExtraData is raised when there is trailing data. This exception is raised while only one-shot (not streaming) unpack.
| 28 | |
| 29 | |
| 30 | class ExtraData(UnpackValueError): |
| 31 | """ExtraData is raised when there is trailing data. |
| 32 | |
| 33 | This exception is raised while only one-shot (not streaming) |
| 34 | unpack. |
| 35 | """ |
| 36 | |
| 37 | def __init__(self, unpacked, extra): |
| 38 | self.unpacked = unpacked |
| 39 | self.extra = extra |
| 40 | |
| 41 | def __str__(self): |
| 42 | return "unpack(b) received extra data." |
| 43 | |
| 44 | |
| 45 | # Deprecated. Use Exception instead to catch all exception during packing. |
no outgoing calls
no test coverage detected
searching dependent graphs…