rvcheck#

error handling

Exceptions

ConversionError(u)

Failed to convert a unit to the desired type.

IncompatibleUnitsError(unit1, unit2)

An operation on two Unums failed because the units were incompatible.

NameConflictError(unit_key)

Tried to define a symbol that was already defined.

NonBasicUnitError(u)

Expected a basic unit but got a non-basic unit.

ShouldBeUnitlessError(u)

An operation on a Unum failed because it had units unexpectedly.

UnumError

A Unum error occurred that was unrelated to dimensional errors.