code: def _raiseValidationException(standardExcMsg, customExcMsg=None):
      
      if customExcMsg is None:
          raise ValidationException(str(standardExcMsg))
      else:
          raise ValidationException(str(customExcMsg))
docs: Raise ValidationException with standardExcMsg, unless customExcMsg is specified.