Exception: UnitMeasurements::BlankUnitError

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

Overview

The UnitMeasurements::BlankUnitError class represents an error that occurs when trying to initialize the Measurement with a blank unit.

See Also:

Author:

Since:

  • 5.10.0

Instance Method Summary collapse

Constructor Details

#initializeBlankUnitError

Initializes a new BlankUnitError instance.

Author:

Since:

  • 5.10.0



17
18
19
# File 'lib/unit_measurements/errors/blank_unit_error.rb', line 17

def initialize
  super("Unit cannot be blank.")
end