Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this statement, <level> is one of error, warn, info or debug, and <expr> is any valid KRL expression that results in a string (or something that can be cast as a string, such as a number). The expression will be sent as an event attribute with name msg

The following example would raise an event with domain system and type error with level info and a message with the value of a variable named query if the rule were to fire:

...

Code Block
themeConfluence
languagejavascript
fired {
  error info "Empty query" if(query like "^$")
}

Explicit errors set the rid and rule_name attributes from the current rule set ID and rule name. The genus is set to "user".

...