@classmethod
def generic_error(cls, val):
    """
        Create an instance of this class set to the ``generic_error`` tag with
        value ``val``.

        :param GenericErrorTag val:
        :rtype: GetMetadataErrorTagUnion
        """
    return cls('generic_error', val)
