WOLFRAM SYSTEM MODELER
errorPrint error message and cancel all actions - in case of an unrecoverable error |
SystemModel["Modelica.Utilities.Streams.error"]
This information is part of the Modelica Standard Library maintained by the Modelica Association.
Streams.error(string);
In case of an unrecoverable error (i.e., if the solver is unable to recover from the error), print the string "string" as error message and cancel all actions. This function is semantically equivalent with the built-in function assert if called with the (default) AssertionLevel.error. Line breaks are characterized by "\n" in the string.
Streams.error("x (= " + String(x) + ")\nhas to be in the range 0 .. 1");
Streams, Streams.print, ModelicaReference.Operators.'assert()' ModelicaReference.Operators.'String()'
string |
Type: String Description: String to be printed to error message window |
---|