error
Exits with an error.
Signatures
- error( string message )
Details
Exits the program flow with an error. An error message is given that is placed in the error output.
Example
open int i{
name = "Number input"
descr = "Give a number >= 0"
value = -1
}
if( i < 0 )
error( "Given number was < 0" )
Output
ERROR:
user-defined error: Given number was < 0
Return value
Exits the execution of trCAD with the error message given as message.
Parameters
- message
-
An error message that gets placed in the error output.