@staticmethod
    def set_error(
            parameter,
            message):
        if not parameter.hasError():
            parameter.setErrorMessage(message)
Set an error *message* in the *parameter*, but only when no error
dataset/ETHPy150Open Esri/solutions-geoprocessing-toolbox/suitability/toolboxes/scripts/MultidimensionSupplementalTools/MultidimensionSupplementalTools/Scripts/mds/tools/tool.py/Tool.set_error