Pull down EvaluationFailureException.

This commit is contained in:
2023-01-13 22:18:13 +08:00
parent 5b14466059
commit 4f93995bbd
3 changed files with 21 additions and 5 deletions

View File

@@ -48,9 +48,9 @@ namespace Cryville.Common.Pdt {
_rfreq = false;
try { Execute(); } catch (Exception ex) {
if (_rfreq) _etor.DiscardStack();
throw new InvalidOperationException("Evaluation failed", ex);
throw new EvaluationFailureException("Evaluation failed", ex);
}
if (!_rfreq && !noset) throw new InvalidOperationException("Return frame not set");
if (!_rfreq && !noset) throw new EvaluationFailureException("Return frame not set");
}
/// <summary>
/// Executes the operator.