v2026.11.2
All Bundles
Bundle

Core runtime library providing primitive types (Bool, Byte, Char, Int, Float, String), the Ref wrappers and array helpers, and system utilities (console, files, threads, sockets). Collections are not here: they are in gen_collect.obl. Every Objeck program links against this bundle automatically via lang.obl.

Error

An error a program raises with Runtime->Raise, and the base of the runtime's own: subclass it for an error of your own. A ?-> region recovers from any of them, and Runtime->GetLastError returns the one it recovered from.

 class ParseError from Error { New(message : String) { Parent(message); } } ... Runtime->Raise(ParseError->New("row 12: expected a number")); 

Operations

GetMessage #

What went wrong

method : public : GetMessage() ~ String

Return

TypeDescription
Stringthe message

New # constructor

Constructor

New(message:String)

Parameters

NameTypeDescription
messageStringwhat went wrong

ToString #

What went wrong

method : public : ToString() ~ String

Return

TypeDescription
Stringthe message