def _raiseValidationException(standardExcMsg, customExcMsg=None):
if customExcMsg is None:<EOL><INDENT>raise ValidationException(str(standardExcMsg))<EOL><DEDENT>else:<EOL><INDENT>raise ValidationException(str(customExcMsg))<EOL><DEDENT>
Raise ValidationException with standardExcMsg, unless customExcMsg is specified.