{error 'message'} calls padError() - the same function the engine uses for its own errors - from a template. What happens next is up to $padErrorAction in _config/config.php:

In every case the application's _events/error.php hook runs first, with $error, $file and $line. When the request survives, the tag itself renders nothing: padError() returns FALSE.

Use it to stop on a state a page must never reach - an unknown value in a {case}, a required row that is not there. For a check that only test runs should hold the page to, use {assert}; to end the request quietly, {exit}; to throw a real PHP exception instead, {exception}.