def METHOD_NAME(self, attribute_type=None):
    super(MoleFraction, self).METHOD_NAME(attribute_type)
    if self.value <= 0.0 or self.value > 1.0:
        raise ValueError(
            "A mole fraction must be greater than zero, and less than or "
            "equal to one."
        )
    if math.floor(self.value * 1e6) < 1:
        raise ValueError(
            "Mole fractions are only precise to the sixth "
            "decimal place within this class representation."
        )