Sha256: 039d6026c1a8b3b80555ccf916ca36f0158a834c97c2354e1d4946b4ab87ad3a

Contents?: true

Size: 731 Bytes

Versions: 26

Compression:

Stored size: 731 Bytes

Contents

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

module UnitMeasurements
  # The +UnitMeasurements::PrimitiveUnitAlreadySetError+ class represents an
  # error that occurs when attempting to set a primitive unit for the unit group
  # that already has a primitive unit defined.
  #
  # @see BaseError
  # @author {Harshal V. Ladhe}[https://shivam091.github.io/]
  # @since 4.0.0
  class PrimitiveUnitAlreadySetError < BaseError
    # Initializes a new +PrimitiveUnitAlreadySetError+ instance.
    #
    # @author {Harshal V. Ladhe}[https://shivam091.github.io/]
    # @since 4.0.0
    def initialize
      super("The primitive unit is already set for the unit group.")
    end
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
unit_measurements_us_complete-5.17.0 lib/unit_measurements/errors/primitive_unit_already_set_error.rb
unit_measurements-5.17.0 lib/unit_measurements/errors/primitive_unit_already_set_error.rb
unit_measurements-5.16.0 lib/unit_measurements/errors/primitive_unit_already_set_error.rb
unit_measurements-5.15.0 lib/unit_measurements/errors/primitive_unit_already_set_error.rb
unit_measurements-5.14.0 lib/unit_measurements/errors/primitive_unit_already_set_error.rb
unit_measurements-5.13.0 lib/unit_measurements/errors/primitive_unit_already_set_error.rb
unit_measurements-5.12.0 lib/unit_measurements/errors/primitive_unit_already_set_error.rb
unit_measurements-5.11.1 lib/unit_measurements/errors/primitive_unit_already_set_error.rb
unit_measurements-5.11.0 lib/unit_measurements/errors/primitive_unit_already_set_error.rb
unit_measurements-5.10.0 lib/unit_measurements/errors/primitive_unit_already_set_error.rb
unit_measurements-5.9.0 lib/unit_measurements/errors/primitive_unit_already_set_error.rb
unit_measurements-5.8.0 lib/unit_measurements/errors/primitive_unit_already_set_error.rb
unit_measurements-5.7.0 lib/unit_measurements/errors/primitive_unit_already_set_error.rb
unit_measurements-5.6.1 lib/unit_measurements/errors/primitive_unit_already_set_error.rb
unit_measurements-5.6.0 lib/unit_measurements/errors/primitive_unit_already_set_error.rb
unit_measurements-5.5.0 lib/unit_measurements/errors/primitive_unit_already_set_error.rb
unit_measurements-5.4.1 lib/unit_measurements/errors/primitive_unit_already_set_error.rb
unit_measurements-5.4.0 lib/unit_measurements/errors/primitive_unit_already_set_error.rb
unit_measurements-5.3.0 lib/unit_measurements/errors/primitive_unit_already_set_error.rb
unit_measurements-5.2.0 lib/unit_measurements/errors/primitive_unit_already_set_error.rb