Exception: Less::ParseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/less/parser.rb

Overview

Thrown whenever an error occurs parsing and/or serializing less source. It is intended to wrap a native V8::JSError

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ ParseError

Copies over ‘error`’s message and backtrace

Parameters:

  • error (V8::JSError)

    native error



100
101
102
103
# File 'lib/less/parser.rb', line 100

def initialize(error)
  super(error.message)
  @backtrace = error.backtrace
end

Instance Method Details

#backtraceArray

Returns the backtrace frames.

Returns:

  • (Array)

    the backtrace frames



106
107
108
# File 'lib/less/parser.rb', line 106

def backtrace
  @backtrace
end