title: Catching Java errors
body: <p>I've heard that catching <code>java.lang.Error</code> is considered bad practice.
  I'm currently loading a .dll that is not guaranteed to be on the PATH, and would like to switch to a user-configured location in the case that it isn't. </p>
  
  <pre><code>try {
      System.loadLibrary("HelloWorld");
  } catch(UnsatisfiedLinkError ule){
      System.load("C:/libraries/HelloWorld.dll");
  }
  </code></pre>
  
  <p>Is there a better way of doing this? Or is catching the <code>UnsatisfiedLinkError</code> here acceptable?</p>