Sass::SyntaxError encapsulates information about the exception, such as the line of the Sass template it was raised on and the Sass file that was being parsed (if applicable). It also provides a handy way to rescue only exceptions raised because of a faulty template.
Public class methods
new
(msg, lineno = nil)
Creates a new SyntaxError. lineno should be the line of the Sass template on which the error occurred.
[show source]
# File lib/sass/error.rb, line 17 17: def initialize(msg, lineno = nil) 18: @message = msg 19: @sass_line = lineno 20: end