Sha256: 240808d19e7bf3b2dabf6ecfc6ba742ba89eb7e920a209337ae85405e737e0e8

Contents?: true

Size: 829 Bytes

Versions: 7

Compression:

Stored size: 829 Bytes

Contents

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

module UnitMeasurements
  # The +UnitMeasurements::MissingPrimitiveUnitError+ class represents an error
  # that occurs when the primitive unit is not set for a unit group.
  #
  # This error is raised when a user attempts to convert a measurement to the
  # primitive unit of a unit group that does not have a primitive unit defined.
  #
  # @see BaseError
  # @author {Harshal V. Ladhe}[https://shivam091.github.io/]
  # @since 5.12.0
  class MissingPrimitiveUnitError < BaseError
    # Initializes a new +MissingPrimitiveUnitError+ instance.
    #
    # @author {Harshal V. Ladhe}[https://shivam091.github.io/]
    # @since 5.12.0
    def initialize
      super("The primitive unit is not set for the unit group.")
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
unit_measurements_us_complete-5.17.0 lib/unit_measurements/errors/missing_primitive_unit_error.rb
unit_measurements-5.17.0 lib/unit_measurements/errors/missing_primitive_unit_error.rb
unit_measurements-5.16.0 lib/unit_measurements/errors/missing_primitive_unit_error.rb
unit_measurements-5.15.0 lib/unit_measurements/errors/missing_primitive_unit_error.rb
unit_measurements-5.14.0 lib/unit_measurements/errors/missing_primitive_unit_error.rb
unit_measurements-5.13.0 lib/unit_measurements/errors/missing_primitive_unit_error.rb
unit_measurements-5.12.0 lib/unit_measurements/errors/missing_primitive_unit_error.rb