Sha256: 7d0171a2edbfb1994d759cd52c3f9aaaa2deda280fa2d73bb6428609edfed566

Contents?: true

Size: 317 Bytes

Versions: 51

Compression:

Stored size: 317 Bytes

Contents

module StaticMatic
  class Error < StandardError
    attr_reader :line

    attr_reader :filename
    
    def initialize(lineno, filename, message)
      @line = lineno
      @filename = filename
      @message = message
    end
    
    def message
      "#{@filename}, line #{@line}: #{@message}"
    end
  end
end

Version data entries

51 entries across 51 versions & 4 rubygems

Version Path
bdimcheff-staticmatic-0.10.1 lib/staticmatic/error.rb
mattt-staticmatic-0.10.1 lib/staticmatic/error.rb
staticmatic2-2.1.8 lib/staticmatic/error.rb
staticmatic2-2.1.7 lib/staticmatic/error.rb
staticmatic2-2.1.6 lib/staticmatic/error.rb
staticmatic2-2.1.5 lib/staticmatic/error.rb
staticmatic2-2.1.4 lib/staticmatic/error.rb
staticmatic2-2.1.3 lib/staticmatic/error.rb
staticmatic2-2.1.2 lib/staticmatic/error.rb
staticmatic2-2.1.1 lib/staticmatic/error.rb
staticmatic2-2.1.0 lib/staticmatic/error.rb
staticmatic2-2.0.2 lib/staticmatic/error.rb
staticmatic2-2.0.1 lib/staticmatic/error.rb
staticmatic2-2.0.0 lib/staticmatic/error.rb
staticmatic-0.11.1 lib/staticmatic/error.rb
staticmatic-0.11.0 lib/staticmatic/error.rb
staticmatic-0.11.0.alpha.10 lib/staticmatic/error.rb
staticmatic-0.11.0.alpha.9 lib/staticmatic/error.rb
staticmatic-0.11.0.alpha.8 lib/staticmatic/error.rb
staticmatic-0.11.0.alpha.7 lib/staticmatic/error.rb