def handleParsingError(self, e: ParsingError, stream: BytesIO): with FilePositionGuard(stream): e.addLayer(self, stream.read())
def handleParsingError(self, e: ParsingError, data: bytes): e.addLayer(self, data)