APIs, concepts, guides, and more
|
|
static |
rsiObject | Pointer to the RapidCodeObject to check for errors. |
Exception | Thrown if any non-warning errors are encountered in the error log of the RapidCodeObject. {
bool hasErrors = false;
System.Text.StringBuilder errorStringBuilder = new System.Text.StringBuilder();
while (rsiObject.ErrorLogCountGet() > 0)
{
RsiError error = rsiObject.ErrorLogGet();
if (error.isWarning)
{
errorStringBuilder.AppendLine("WARNING: " + error.Message);
}
else
{
hasErrors = true;
errorStringBuilder.AppendLine("ERROR: " + error.Message);
}
}
if (hasErrors)
{
throw new Exception(errorStringBuilder.ToString());
}
}
|
Definition at line 26 of file HelperFunctionsCS.cs.