Source code for openff.units.exceptions
__all__ = [
"MissingOpenMMUnitError",
"NoneQuantityError",
"NoneUnitError",
]
[docs]class MissingOpenMMUnitError(Exception):
"""Raised when a unit cannot be converted to an equivalent OpenMM unit"""
[docs]class NoneQuantityError(Exception):
"""Raised when attempting to convert `None` between unit packages as a quantity object"""
[docs]class NoneUnitError(Exception):
"""Raised when attempting to convert `None` between unit packages as a unit object"""