def __init__(self, msg, lineno, path=None):
super(InvalidSpec, self).__init__()<EOL>assert isinstance(msg, six.text_type), type(msg)<EOL>assert isinstance(lineno, (six.integer_types, type(None))), type(lineno)<EOL>self.msg = msg<EOL>self.lineno = lineno<EOL>self.path = path<EOL>
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.