title: Webflow On-Render/On-Entry Exception Still Runs On-Exit Methods
body: <p>I have the following  defined in my flow definition:</p>
  
  <pre><code>&lt;view-state id="switchboard" view="switchboard2" model="reservationForm"&gt;
      &lt;on-entry&gt;
          &lt;evaluate expression="flowController.enterSwitchboard(flowRequestContext)" /&gt;
          &lt;evaluate expression="flowController.populateActionFlags(flowRequestContext)" /&gt;
      &lt;/on-entry&gt;
      &lt;transition on="prev" to="switchboardAction" validate="false" /&gt;
      &lt;transition on="*" to="switchboardAction" /&gt;
      &lt;transition on-exception="java.lang.Exception" to="systemErrorView" /&gt;
      &lt;on-exit&gt;
          &lt;evaluate expression="flowController.exitSwitchboard(flowRequestContext)" /&gt;
          &lt;evaluate expression="flowController.clearWebflowForms(flowRequestContext)" /&gt;
      &lt;/on-exit&gt;
  &lt;/view-state&gt;
  </code></pre>
  
  <p>What is happening is that an error (in this particular case, IllegalArgumentException, but could be other exceptions as well) in the populateActionFlags() method is ocurring, but the exitSwitchboard() method is still firing. After this, the clearWebflowForms() method throws an exception because the model is screwed up as a result of the previous exception. This is causing an infinite loop.</p>
  
  <p>What I need is this: when an exception occurs, bypass the on-exit methods and go to an error state ("systemErrorView") defined in a  section. Do not pass go, do not collect $200.</p>
  
  <p>Webflow version is 2.4.1.</p>
  
  <p>Can anyone assist?</p>
  
  <p>Jason</p>