Exception: UnitMeasurements::BlankQuantityError

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

Overview

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

See Also:

Author:

Since:

  • 5.10.0

Instance Method Summary collapse

Constructor Details

#initializeBlankQuantityError

Initializes a new BlankQuantityError instance.

Author:

Since:

  • 5.10.0



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

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