Sha256: 0368fe5cd51f67dc18c70ef6013471d7fea27b3f45d367be704bff8a15edc0e0

Contents?: true

Size: 654 Bytes

Versions: 56

Compression:

Stored size: 654 Bytes

Contents

module Haml
  # An exception raised by Haml code.
  class Error < StandardError
    # :stopdoc:

    # By default, an error is taken to refer to the line of the template
    # that was being processed when the exception was raised.
    # However, if line is non-nil, it + 1 is used instead.
    attr_reader :line

    def initialize(message = nil, line = nil)
      super(message)
      @line = line
    end
    # :startdoc:
  end

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

Version data entries

56 entries across 56 versions & 12 rubygems

Version Path
gohanlonllc-haml-2.1.0.20080513000000 lib/haml/error.rb
gohanlonllc-haml-2.1.0 lib/haml/error.rb
honkster-haml-2.1.0 lib/haml/error.rb
honkster-haml-2.1.1 lib/haml/error.rb
jwhitmire-haml-2.1.0.1 lib/haml/error.rb
jwhitmire-haml-2.1.0.2 lib/haml/error.rb
jwhitmire-haml-2.1.0.3 lib/haml/error.rb
wireframe-haml-2.1.0 lib/haml/error.rb
wireframe-haml-2.1.1 lib/haml/error.rb
radiantcms-couchrest_model-0.2.4 vendor/plugins/haml/lib/haml/error.rb
radiantcms-couchrest_model-0.2.2 vendor/plugins/haml/lib/haml/error.rb
radiantcms-couchrest_model-0.2.1 vendor/plugins/haml/lib/haml/error.rb
radiantcms-couchrest_model-0.2 vendor/plugins/haml/lib/haml/error.rb
radiantcms-couchrest_model-0.1.9 vendor/plugins/haml/lib/haml/error.rb
radiantcms-couchrest_model-0.1.8 vendor/plugins/haml/lib/haml/error.rb
radiantcms-couchrest_model-0.1.7 vendor/plugins/haml/lib/haml/error.rb
radiantcms-couchrest_model-0.1.6 vendor/plugins/haml/lib/haml/error.rb
radiantcms-couchrest_model-0.1.5 vendor/plugins/haml/lib/haml/error.rb
radiant-0.8.2 vendor/plugins/haml/lib/haml/error.rb
radiant-rc-0.9.0 vendor/plugins/haml/lib/haml/error.rb