I've heard that catching `java.lang.Error` 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. 

```
try {
    System.loadLibrary("HelloWorld");
} catch(UnsatisfiedLinkError ule){
    System.load("C:/libraries/HelloWorld.dll");
}

```

Is there a better way of doing this? Or is catching the `UnsatisfiedLinkError` here acceptable?