language · keyword ·
catch
Handle an oracle-only thrown error
For Kyber-ready code, return explicit result data or task failure state. Use try/catch only in an explicitly selected oracle run.
catchStatus: generated-cpp-only
Complete try, catch, and throw example
For Kyber-ready code, return explicit result data or task failure state. Use try/catch only in an explicitly selected oracle run.
cpu · language · type checked
try
{
throw Error("save.denied", "Choose a writable save folder")
}
catch problem
{
Console.Log(problem.message)
}
project.mech
manifestVersion = "2"
package = "api.example.word__catch"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
Notes and source
try-catch-throw is generated-C++ only in Yeho Core 2026.1.
There is no admitted finally, panic, or assert statement.
yeho/conformance-2026.1.json: try-catch-throw; parser_statements.cpp