Sha256: 11c153dd34bbf0f4d91bf4d52af7be64a8e804d95b4fe80d51faa10556df0578

Contents?: true

Size: 286 Bytes

Versions: 5

Compression:

Stored size: 286 Bytes

Contents

# -*- encoding: utf-8 -*-
# -*- frozen_string_literal: true -*-
# -*- warn_indent: true -*-

module UnitMeasurements
  class ParseError < BaseError
    attr_reader :string

    def initialize(string)
      @string = string
      super("Unable to parse: '#{string}'.")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
unit_measurements-1.5.0 lib/unit_measurements/errors/parse_error.rb
unit_measurements-1.4.0 lib/unit_measurements/errors/parse_error.rb
unit_measurements-1.3.0 lib/unit_measurements/errors/parse_error.rb
unit_measurements-1.2.0 lib/unit_measurements/errors/parse_error.rb
unit_measurements-1.1.0 lib/unit_measurements/errors/parse_error.rb