You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trying to log HC0047, is it normal that it does not trigger neither ExecutionDiagnosticEventListener.ValidationErrors nor IErrorFilter.OnError() ?
#9039
I have also tried to override OperationCost(IRequestContext context, double fieldCost, double typeCost) but at that point the validation error .HasErrors flag is false.
My goal is to catch and log for debugging during development the "HC0047" error.
It is weird unless I am doing something wrong that the IErrorFilter implementation is not triggered for this error code. Any advice is appreciated, thank you.
I can see a work around having the max costs as const and compare inside OperationCost() and log if greater but I don't think it's a elegant approach more like a workaround if I don't have any other option.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have also tried to override
OperationCost(IRequestContext context, double fieldCost, double typeCost)but at that point the validation error .HasErrorsflag is false.My goal is to catch and log for debugging during development the "HC0047" error.
It is weird unless I am doing something wrong that the
IErrorFilterimplementation is not triggered for this error code. Any advice is appreciated, thank you.I can see a work around having the max costs as const and compare inside
OperationCost()and log if greater but I don't think it's a elegant approach more like a workaround if I don't have any other option.Beta Was this translation helpful? Give feedback.
All reactions