Page MenuHomePhabricator

Create try-catch and throw builtin functions to be able to test custom errors thrown by user code
Closed, ResolvedPublic

Description

Description

Add builtin functions:

  • Z850 try-catch
  • Z851 throw

Completion checklist

Details

Related Changes in Gerrit:
Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
Update function-schemata sub-module to HEAD (e23a73d)repos/abstract-wiki/wikifunctions/function-orchestrator!453jforrestersync-function-schematamain
Update function-schemata sub-module to HEAD (e23a73d)repos/abstract-wiki/wikifunctions/function-evaluator!411jforrestersync-function-schematamain
Update function-schemata sub-module to HEAD (e23a73d)repos/abstract-wiki/wikifunctions/wikilambda-cli!89jforrestersync-function-schematamain
definitions: add "is error type" and "get error" builtin functions, and identity keys to error typesrepos/abstract-wiki/wikifunctions/function-schemata!273genghT405114main
definitions: add try-catch and throw function definition and implementationrepos/abstract-wiki/wikifunctions/function-schemata!272genghT395476main
Customize query in GitLab

Event Timeline

gengh claimed this task.
Jdforrester-WMF changed the task status from Open to In Progress.Sep 10 2025, 3:46 PM
Jdforrester-WMF triaged this task as Medium priority.
Jdforrester-WMF subscribed.

Please connect this to the OKR it blocks.

Z28154 is already a throw function.

jforrester merged https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-schemata/-/merge_requests/273

definitions: add "is error type" and "get error" builtin functions, and identity keys to error types

Change #1190302 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (e23a73d)

https://gerrit.wikimedia.org/r/1190302

Z28154 is already a throw function.

Thanks, but it is premature, post-dates this task, and I think it should be eventually deleted. We're expecting to provide UX-level integration with this pre-defined Function, so a user-land equivalent has little value and will mostly just be confusing to people.

Change #1190302 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (e23a73d)

https://gerrit.wikimedia.org/r/1190302

Change #1191170 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2025-09-16-190551 to 2025-09-24-083919

https://gerrit.wikimedia.org/r/1191170

Change #1191171 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-09-16-134119 to 2025-09-24-180530

https://gerrit.wikimedia.org/r/1191171

Change #1191170 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2025-09-16-190551 to 2025-09-24-083919

https://gerrit.wikimedia.org/r/1191170

Change #1191171 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-09-16-134119 to 2025-09-24-180530

https://gerrit.wikimedia.org/r/1191171