Sha256: bf7dcd220d2b043b3a932a1734558412b1e97df57a2e7c12e31555fb275b2e4a

Contents?: true

Size: 198 Bytes

Versions: 4

Compression:

Stored size: 198 Bytes

Contents

module LensProtocol
  class Error < StandardError
  end

  class ParsingError < Error
    def initialize msg = 'Parsing failed', line = 'N/A'
      super "#{msg}\n  Line: #{line}"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lens_protocol-0.1.3 lib/lens_protocol/errors.rb
lens_protocol-0.1.2 lib/lens_protocol/errors.rb
lens_protocol-0.1.1 lib/lens_protocol/errors.rb
lens_protocol-0.1.0 lib/lens_protocol/errors.rb