Beispiel #1
0
 protected void CheckValue(string param, ExecutionContext parentContext)
 {
     try
     {
         if (!ValueType.Interprete(param).Success)
         {
             throw new ScenarioExecutionException(ScenarioExecutionError.InvalidValue, param);
         }
     }
     catch (Exception e)
     {
         parentContext?.CancelAll(); //stop execution
         throw e;
     }
 }