Exception: Sass::CompilationError
- Defined in:
- lib/sass/error.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#file ⇒ Object
Returns the value of attribute file.
-
#formatted ⇒ Object
Returns the value of attribute formatted.
-
#line ⇒ Object
Returns the value of attribute line.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
- #backtrace ⇒ Object
-
#initialize(message, formatted, file, line, column, status) ⇒ CompilationError
constructor
A new instance of CompilationError.
Constructor Details
#initialize(message, formatted, file, line, column, status) ⇒ CompilationError
Returns a new instance of CompilationError.
17 18 19 20 21 22 23 24 |
# File 'lib/sass/error.rb', line 17 def initialize(, formatted, file, line, column, status) @formatted = formatted @file = file @line = line @column = column @status = status super() end |
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column.
15 16 17 |
# File 'lib/sass/error.rb', line 15 def column @column end |
#file ⇒ Object
Returns the value of attribute file.
15 16 17 |
# File 'lib/sass/error.rb', line 15 def file @file end |
#formatted ⇒ Object
Returns the value of attribute formatted.
15 16 17 |
# File 'lib/sass/error.rb', line 15 def formatted @formatted end |
#line ⇒ Object
Returns the value of attribute line.
15 16 17 |
# File 'lib/sass/error.rb', line 15 def line @line end |
#status ⇒ Object
Returns the value of attribute status.
15 16 17 |
# File 'lib/sass/error.rb', line 15 def status @status end |
Instance Method Details
#backtrace ⇒ Object
26 27 28 29 30 |
# File 'lib/sass/error.rb', line 26 def backtrace return nil if super.nil? ["#{@file}:#{@line}:#{@column}"] + super end |