-
Notifications
You must be signed in to change notification settings - Fork 0
API Host AuroraException
AuroraScript 引擎操作的基础异常。
Base exception for AuroraScript engine operations.
命名空间:AuroraScript。类型:class。
Namespace:
AuroraScript. Kind: class.
Purpose
AuroraException 是公开宿主类型。通过下方签名选择调用方式;对运行时对象、生命周期和异常,应由宿主在边界处明确处理。
Base exception for AuroraScript engine operations.
Simple Example
下面是 AuroraException 的最小使用方式。
A minimal use of
AuroraException.
try
{
await engine.BuildAsync("main.as");
}
catch (AuroraException ex)
{
Console.Error.WriteLine(ex.Message);
}Members
签名
AuroraException()AuroraException(string message)AuroraException(string message, Exception innerException)
创建 AuroraException 实例。
Use the member according to its public signature.
Parameters:
-
message
按签名提供的string参数。The
stringparameter required by the signature. -
innerException
按签名提供的Exception参数。The
Exceptionparameter required by the signature.
Returns
新建的 AuroraException 实例。
A new
AuroraExceptioninstance.
调用示意
以下示例展示调用形状;将占位实例和参数替换为宿主中的实际值。
The example shows the call shape; replace placeholder instances and arguments with actual host values.
var value = new AuroraException(/* 参数 */);AuroraScript.JIT 4.0.0 · Documentation Home · Repository · MIT License