Skip to content

API Host ScriptError

Liu.Yandong.Hanks edited this page Aug 21, 2026 · 3 revisions

ScriptError

Script-level error object exposed through runtime exceptions and script values.

Namespace: AuroraScript.Runtime.Types. Kind: class.

Back to .NET Host API Reference

Overview

Script-level error object exposed through runtime exceptions and script values.

Quick Reference

A minimal use of ScriptError.

@module(MAIN);

export func run() {
    throw new Error("invalid input");
}

Properties

Message

string Message

Parameters

None.

Returns

Returns string.

StackTrace

AuroraStackTrace[] StackTrace

Parameters

None.

Returns

Returns AuroraStackTrace[].

Clone this wiki locally