Exception: Sass::CompilationError

Inherits:
BaseError
  • Object
show all
Defined in:
lib/sass/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, formatted, file, line, column, status)
  @formatted = formatted
  @file = file
  @line = line
  @column = column
  @status = status
  super(message)
end

Instance Attribute Details

#columnObject

Returns the value of attribute column.



15
16
17
# File 'lib/sass/error.rb', line 15

def column
  @column
end

#fileObject

Returns the value of attribute file.



15
16
17
# File 'lib/sass/error.rb', line 15

def file
  @file
end

#formattedObject

Returns the value of attribute formatted.



15
16
17
# File 'lib/sass/error.rb', line 15

def formatted
  @formatted
end

#lineObject

Returns the value of attribute line.



15
16
17
# File 'lib/sass/error.rb', line 15

def line
  @line
end

#statusObject

Returns the value of attribute status.



15
16
17
# File 'lib/sass/error.rb', line 15

def status
  @status
end

Instance Method Details

#backtraceObject



26
27
28
29
30
# File 'lib/sass/error.rb', line 26

def backtrace
  return nil if super.nil?

  ["#{@file}:#{@line}:#{@column}"] + super
end