Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 706 Bytes

File metadata and controls

25 lines (20 loc) · 706 Bytes

error()

NAME

error - generate a run-time error

SYNOPSIS

void error( string err );

DESCRIPTION

Calling error(err) raises a driver/runtime error and stops normal execution of the current evaluation path.

The driver routes uncaught errors through master error_handler(). If that apply returns a non-empty string, that string is emitted as error output. Otherwise the driver falls back to default debug/trace output.

When catch() traps the error, catch() receives the caught payload according to its normal contract.

SEE ALSO

catch(), throw(), error_handler()