def error(self, msg):
return {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:data>": msg}<EOL>
Generates an error token with the given message

        :arg msg: the error message

        :returns: SerializeError token