@classmethod
def of(cls, exc):
    """Create a subclass of the original exception and TransformError."""
    exc_type = type(exc)
    name = f'{cls.__name__}[{exc_type.__name__}]'
    return type(name, (cls, exc_type), {})
