Hi ,
i defined below fault rule and default fault rule proxy pre flow, i want to call error handler even if raise fault rule is executed
<ProxyEndpoint name="default">
........
<FaultRules>
<FaultRule name="error-response">
<Step>
<Name>RF-JsErrors</Name>
</Step>
<Condition>isError = true</Condition>
</FaultRule>
</FaultRules>
<DefaultFaultRule name="error-handler">
<Step>
<Name>ErrorHandler</Name>
</Step>
<AlwaysEnforce>true</AlwaysEnforce>
</DefaultFaultRule>
........
as mentioned in apigee docs:
“However, there’s one instance where this isn’t the case. If a FaultRule other than the DefaultFaultRule invokes a RaiseFault policy, the DefaultFaultRule does not execute, even if the <AlwaysEnforce>
element in the <DefaultFaultRule>
tag is true.”
so in apigee, DefaultFaultRule will not be executed in case of invoke a RaiseFault policy.
should i replace RF-JsErrors (Raise Fault policy) with assign message policy? or there is a way to enforce executing default fault rule with RaiseFault Policy.
Thanks