Sha256: 9ec3b74b3db13df4090b5fc5dcac66e650501d873254f4b997424bc42e7eee04

Contents?: true

Size: 417 Bytes

Versions: 16

Compression:

Stored size: 417 Bytes

Contents

module FixtureFox
  class Error < StandardError
    def error_message() message end
  end

  class ParseError < Error
    attr_reader :file
    attr_reader :lineno
    attr_reader :pos

    def initialize(file, lineno, pos, msg)
      super(msg)
      @file = file
      @lineno = lineno
      @pos = pos
    end

    def error_message()
      [file, lineno, pos].compact.join(":") + " " + message
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fixture_fox-0.2.12 lib/fixture_fox/error.rb
fixture_fox-0.2.11 lib/fixture_fox/error.rb
fixture_fox-0.2.10 lib/fixture_fox/error.rb
fixture_fox-0.2.9 lib/fixture_fox/error.rb
fixture_fox-0.2.8 lib/fixture_fox/error.rb
fixture_fox-0.2.7 lib/fixture_fox/error.rb
fixture_fox-0.2.6 lib/fixture_fox/error.rb
fixture_fox-0.2.5 lib/fixture_fox/error.rb
fixture_fox-0.2.4 lib/fixture_fox/error.rb
fixture_fox-0.2.3 lib/fixture_fox/error.rb
fixture_fox-0.2.2 lib/fixture_fox/error.rb
fixture_fox-0.2.1 lib/fixture_fox/error.rb
fixture_fox-0.2.0 lib/fixture_fox/error.rb
fixture_fox-0.1.3 lib/fixture_fox/error.rb
fixture_fox-0.1.2 lib/fixture_fox/error.rb
fixture_fox-0.1.1 lib/fixture_fox/error.rb