language.types · type ·

error

A typed failure with a machine-readable type and a human-readable message.

corecpulanguagetypeyeho

A focused reference with a complete example. Numeric widths and experimental types still depend on the selected backend.

error

Status: documented

Name the failure

Use an error value when failure needs to cross a function or task boundary with machine-readable identity and a human-readable explanation.

cpu · language · type checked

error problem = Error("save.denied", "The project folder is read only")
Console.Error(problem.type + ": " + problem.message)
project.mech
manifestVersion = "2"
package = "api.example.language__error_values"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"
Notes and source

demonhunterlabs/app/lib/yeho-language-reference.ts