Skip to content

API Host AuroraException

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

AuroraException

AuroraScript 引擎操作的基础异常。

Base exception for AuroraScript engine operations.

命名空间:AuroraScript。类型:class。

Namespace: AuroraScript. Kind: class.

返回 .NET Host API 参考

用途

AuroraException 是公开宿主类型。通过下方签名选择调用方式;对运行时对象、生命周期和异常,应由宿主在边界处明确处理。

Base exception for AuroraScript engine operations.

简单示例

下面是 AuroraException 的最小使用方式。

A minimal use of AuroraException.

try
{
    await engine.BuildAsync("main.as");
}
catch (AuroraException ex)
{
    Console.Error.WriteLine(ex.Message);
}

成员

Constructor

签名

  • AuroraException()
  • AuroraException(string message)
  • AuroraException(string message, Exception innerException)

创建 AuroraException 实例。

Use the member according to its public signature.

Parameters:

  • message
    按签名提供的 string 参数。

    The string parameter required by the signature.

  • innerException
    按签名提供的 Exception 参数。

    The Exception parameter required by the signature.

Returns

新建的 AuroraException 实例。

A new AuroraException instance.

调用示意

以下示例展示调用形状;将占位实例和参数替换为宿主中的实际值。

The example shows the call shape; replace placeholder instances and arguments with actual host values.

var value = new AuroraException(/* 参数 */);

Clone this wiki locally