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.



61
62
63
# File 'lib/sass/exception.rb', line 61

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