mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
33 lines
915 B
C#
33 lines
915 B
C#
using Serein.Script.Node;
|
|
|
|
namespace Serein.Script
|
|
{
|
|
public sealed class SereinSciptParserException : Exception
|
|
{
|
|
//public ASTNode Node { get; }
|
|
public override string Message { get; }
|
|
|
|
public SereinSciptParserException(ASTNode node, string message)
|
|
{
|
|
//this.Node = node;
|
|
Message = $"异常信息 : {message} ,代码在第{node.Row}行: {node.Code.Trim()}";
|
|
}
|
|
}
|
|
|
|
public sealed class SereinSciptInterpreterExceptio : Exception
|
|
{
|
|
//public ASTNode Node { get; }
|
|
public override string Message { get; }
|
|
|
|
public SereinSciptInterpreterExceptio(ASTNode node, string message)
|
|
{
|
|
//this.Node = node;
|
|
Message = $"异常信息 : {message} ,代码在第{node.Row}行: {node.Code.Trim()}";
|
|
}
|
|
|
|
|
|
public override string StackTrace => string.Empty;
|
|
}
|
|
|
|
}
|