added custom context to be used in optimization evaluations that should expose all programmers issues, while allowing reporting errors to the error snooping entity. Fixes #875
This commit is contained in:
1 parent
deb4f78347
commit
f21897fab1
4 files changed
+76
-10
No files matched your search
@@ -72,9 +72,9 @@ public class ExpressionException extends RuntimeException implements ResolvedExc
|
||||
|
||||
synchronized static String makeMessage(Context c, Expression e, Tokenizer.Token t, String message) throws ExpressionException
|
||||
{
|
||||
if (c.host.errorSnooper != null)
|
||||
if (c.getErrorSnooper() != null)
|
||||
{
|
||||
List<String> alternative = c.host.errorSnooper.apply(e, t, message);
|
||||
List<String> alternative = c.getErrorSnooper().apply(e, t, message);
|
||||
if (alternative!= null)
|
||||
{
|
||||
return String.join("\n", alternative);
|
||||
|
||||
Reference in new issue
Block a user