title: Exception flow control
body: <p>I use exceptions to flow control a lot, but I have a strange feeling that I am doing something wrong. Is it a good practice to write something like code shown bellow?</p>
  
  <pre><code>public static void main(String[] args)
  {
      try
      {
          methodA();
      }
      catch (Exception ex)
      {
          handleException(ex);
      }
  }
  
  public static methodA()
  {
      methodB();
  }
  
  public static methodB()
  {
      if(someConditionIsNotMet)
      {
          throw new RuntimeException("Some Condition Is Not Met");
      }
  }
  </code></pre>