def getMessage(self, message):
if message.filename != self._filename:<EOL><INDENT>raise RuntimeError(<EOL>'<STR_LIT>'<EOL>.format(message.filename, self._filename))<EOL><DEDENT>self._file.seek(message.offset)<EOL>self._logger.debug(<EOL>'<STR_LIT>'<EOL>.format(message.offset, message.size))<EOL>return self._file.read(message.size)<EOL>
Conveniently retrieves message contents from a batch file. Can throw a
:class:`python:RuntimeError` if the message batch filename doesn't
match this batch filename.