def validate(self, obj, name, value):
        try:
            return self._validator.validate(obj, name, value)
        except Exception:
            self.error(obj, name, value)
Validates that a specified value is valid for this trait.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/datatypes/int.py/Int.validate