Skip to content

abort

Syntax

abort()
abort("My error message")

Description

This action causes FRED to terminate immediately. If provided with a string argument, the argument will be used as an error message in the logs. Otherwise, a generic abort error message will be logged.

Examples

If an agent under 18 enters state B below, then FRED terminates with an error indicating that a specific agent has invoked abort.

condition FOO {
    ...
    state B {
        if (age() < 18) then abort()
        ...
    }
}

See Also