SyntaxError
Raised by the parser or compiler when it encounters a syntax error. Attributes: filename, lineno, offset, text identify the location.
Raised by the parser or compiler when it encounters a syntax error. Attributes: filename, lineno, offset, text identify the location.
Raised by eval, require, or load when Ruby encounters invalid syntax in a script. The message includes the filename and line number.