Exception: Sass::ScriptError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sass/exception.rb

Overview

An exception thrown by Sass Script.

Instance Method Summary collapse

Constructor Details

#initialize(message, name = nil) ⇒ ScriptError

Returns a new instance of ScriptError.



65
66
67
# File 'lib/sass/exception.rb', line 65

def initialize(message, name = nil)
  super(name.nil? ? message : "$#{name}: #{message}")
end