language · language ·

Try, catch, and throw

The parser models try, catch, and throw, but exception control flow is not part of the Kyber product route today.

catchcpuerrorslanguagethrowtryyeho

For Kyber-ready code, return explicit result data or task failure state. Use try/catch only in an explicitly selected oracle run.

throw Error(type, message)
try { ... } catch problem { ... }

Status: 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.language__try_catch_throw"
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