Exception: UnitMeasurements::PrimitiveUnitAlreadySetError
- Inherits:
-
BaseError
- Object
- StandardError
- BaseError
- UnitMeasurements::PrimitiveUnitAlreadySetError
- 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.
Instance Method Summary collapse
-
#initialize ⇒ PrimitiveUnitAlreadySetError
constructor
Initializes a new
PrimitiveUnitAlreadySetError
instance.
Constructor Details
#initialize ⇒ PrimitiveUnitAlreadySetError
Initializes a new PrimitiveUnitAlreadySetError
instance.
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 |