.Modelica.Utilities.Strings.syntaxError

Information

Syntax

Strings.syntaxError(string, index, message);

Description

Function syntaxError prints an error message in the following form:

Syntax error at column <index> of
<string>
    ^       // shows character that is wrong
<message>

where the strings within <..> are the actual values of the input arguments of the function.

If the given string is too long, only a relevant part of the string is printed.

Interface

function syntaxError
  extends Modelica.Icons.Function;
  input String string "String that has an error at position index";
  input Integer index "Index of string at which scanning detected an error";
  input String message = "" "String printed at end of error message";
end syntaxError;

Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos