def __init__(self, msg, lineno, path=None):
        """
        Args:
            msg: Error message intended for the spec writer to read.
            lineno: The line number the error occurred on.
            path: Path to the spec file with the error.
        """
        super(InvalidSpec, self).__init__()
        assert isinstance(msg, six.text_type), type(msg)
        assert isinstance(lineno, (six.integer_types, type(None))), type(lineno)
        self.msg = msg
        self.lineno = lineno
        self.path = path
def __init__ ( self , msg , lineno , path = None ) : super ( InvalidSpec , self ) . __init__ ( ) assert isinstance ( msg , six . text_type ) , type ( msg ) assert isinstance ( lineno , ( six . integer_types , type ( None ) ) ) , type ( lineno ) self . msg = msg self . lineno = lineno self . path = path
Args:
            msg: Error message intended for the spec writer to read.
            lineno: The line number the error occurred on.
            path: Path to the spec file with the error.