@classmethod
def check(cls, tag):
    """Create exception instance, but check type of tag first."""
    if not isinstance(tag, str):
        return TypeError(f'tag must be str, not {type(tag).__name__}')
    return cls(tag)
