title: How to get/find the variable that caused Division By Zero error in delphi?
body: <p>I know how to do basic exception handling. So i can raise a message on divide by zero using the 'try except' method. </p>
  
  <p>What i would like to do is, find the variable that causes this error and then change its value on run time.</p>
  
  <p>For Ex:</p>
  
  <pre><code>procedure Calculate();
  var
    a, b, c : Double;
  begin
    try
      a := 4; //suppose i take this value from user and he enters 4
      b := 0; //suppose i take this value from user and he enters 0
      c := a/b;
      ShowMessage(FloatToStr(c));
    except
      on E : EZeroDivide do
      begin
        ShowMessage('Exception message = '+E.Message);
  
  //i am not sure how to identify that its variable 'b' that is causing the error and has to be changed by a default value
  
        get(E....errorVaraiable);
        E....errorVaraiable := 0.00001;
        c := a/E....errorVariable;
  
        ShowMessage(FloatToStr(c));
      end;
    end;
  </code></pre>
  
  <p>Please, can anyone help me with this?</p>