Exception: UnitMeasurements::PrimitiveUnitAlreadySetError

Inherits:
BaseError
  • Object
show all
Defined in:
lib/unit_measurements/errors/primitive_unit_already_set_error.rb

Overview

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 Also:

Author:

Since:

  • 4.0.0

Instance Method Summary collapse

Constructor Details

#initializePrimitiveUnitAlreadySetError

Initializes a new PrimitiveUnitAlreadySetError instance.

Author:

Since:

  • 4.0.0



18
19
20
# File 'lib/unit_measurements/errors/primitive_unit_already_set_error.rb', line 18

def initialize
  super("The primitive unit is already set for the unit group.")
end