Sha256: 9552abc0c1bef7b01d62527cd082956ce6a4e54a1462e06996a4b1807377c18d

Contents?: true

Size: 616 Bytes

Versions: 578

Compression:

Stored size: 616 Bytes

Contents

module Haml
  # An exception raised by Haml code.
  class Error < StandardError
    # The line of the template on which the error occurred.
    #
    # @return [Fixnum]
    attr_reader :line

    # @param message [String] The error message
    # @param line [Fixnum] See \{#line}
    def initialize(message = nil, line = nil)
      super(message)
      @line = line
    end
  end

  # SyntaxError is the type of exception raised when Haml encounters an
  # ill-formatted document.
  # It's not particularly interesting,
  # except in that it's a subclass of {Haml::Error}.
  class SyntaxError < Haml::Error; end
end

Version data entries

578 entries across 484 versions & 11 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/haml-3.1.6/lib/haml/error.rb
classiccms-0.7.5 vendor/bundle/gems/haml-3.1.4/lib/haml/error.rb
classiccms-0.7.5 vendor/bundle/gems/haml-3.1.5/lib/haml/error.rb
classiccms-0.7.4 vendor/bundle/gems/haml-3.1.6/lib/haml/error.rb
classiccms-0.7.4 vendor/bundle/gems/haml-3.1.4/lib/haml/error.rb
classiccms-0.7.4 vendor/bundle/gems/haml-3.1.5/lib/haml/error.rb
classiccms-0.7.3 vendor/bundle/gems/haml-3.1.4/lib/haml/error.rb
classiccms-0.7.3 vendor/bundle/gems/haml-3.1.5/lib/haml/error.rb
classiccms-0.7.3 vendor/bundle/gems/haml-3.1.6/lib/haml/error.rb
torquebox-console-0.3.0 vendor/bundle/jruby/1.9/gems/haml-3.1.8/lib/haml/error.rb
classiccms-0.7.2 vendor/bundle/gems/haml-3.1.6/lib/haml/error.rb
classiccms-0.7.2 vendor/bundle/gems/haml-3.1.5/lib/haml/error.rb
classiccms-0.7.2 vendor/bundle/gems/haml-3.1.4/lib/haml/error.rb
classiccms-0.7.1 vendor/bundle/gems/haml-3.1.5/lib/haml/error.rb
classiccms-0.7.1 vendor/bundle/gems/haml-3.1.6/lib/haml/error.rb
classiccms-0.7.1 vendor/bundle/gems/haml-3.1.4/lib/haml/error.rb
classiccms-0.7.0 vendor/bundle/gems/haml-3.1.5/lib/haml/error.rb
classiccms-0.7.0 vendor/bundle/gems/haml-3.1.6/lib/haml/error.rb
classiccms-0.7.0 vendor/bundle/gems/haml-3.1.4/lib/haml/error.rb
torquebox-console-0.2.5 vendor/bundle/jruby/1.9/gems/haml-3.1.8/lib/haml/error.rb