Unit::UnitError
Base exception class for all unit-related errors. This provides a common ancestor for all domain-specific exceptions in the Unit module, making it easy to catch all unit-related errors.
Example:
begin
# Some unit operation
rescue ex : Unit::UnitError
# Handle any unit-related error
end