logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

exit-handler - (program-flow)

Description

Exits current request by transferring control directly after the top-level request dispatcher. If there is an after-handler, it will still execute, unless exit-handler is called from before-handler. <request status> number is a request status returned to the caller (see exit-status); if not specified, then it's the value specified in the last executed exit-status statement; if none executed, then it's 0.

Examples

Returning status of 20: begin-handler /req-handler public ... exit-status 20 ... exit-handler ... end-handler Returning status of 0: begin-handler /req-handler public ... exit-handler ... end-handler Returning status of 10: begin-handler /req-handler public ... exit-handler 10 ... end-handler

Name

exit-handler - (program-flow)

Purpose

Exit current request processing.

See Also

Program flow break-loopcall-handlercode-blockscontinue-loopdo-onceexit-handlerif-definedif-truequit-processreturn-handlerstart-loop See all documentation $DATE $VERSION GOLF(2gg)

Syntax

exit-handler [ <request status> ]

See Also