Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Language reference > Statements > Simple statements > Assert

Assert

An assert statement is a debugging facility: its purpose is to catch possible errors by providing a condition; if it evaluates to "true", no further actions are taken; otherwise an ``AssertionFailed´´ exception is thrown.

Assertion can be enabled and disabled with an assert attribute in the zone's configuration.

  assert := "assert" exprcondition ";" 
See also  | Statements  | Simple statements  | Grammar
Contributes notes:
Add a note
What's new | Anvil