def beholder(func):
@functools.wraps(func)<EOL>def behold(self, proto, length, *args, **kwargs):<EOL><INDENT>seek_cur = self._file.tell()<EOL>try:<EOL><INDENT>return func(proto, length, *args, **kwargs)<EOL><DEDENT>except Exception:<EOL><INDENT>from pcapkit.protocols.raw import Raw<EOL>error = traceback.format_exc(limit=<NUM_LIT:1>).strip().split(os.linesep)[-<NUM_LIT:1>]<EOL>self._file.seek(seek_cur, os.SEEK_SET)<EOL>next_ = Raw(io.BytesIO(self._read_fileng(length)), length, error=error)<EOL>return next_<EOL><DEDENT><DEDENT>return behold<EOL>
[ClassMethod] Behold extraction procedure.