UnitConversionError

This error is thrown by Units methods like convert().

from: Units

This contains the units that were being converted from.

fromValue: number

This contains the value that was trying to be converted.

message: string

This contains a longer text description of the conversion error that takes from, fromValue and to into account.

to: Units

This contains the units that were being converted to.

toString(): string

This returns message.