I am working with the `ClassLoader` class and if there are problems it throws a `NoClassDefFoundError`. In context this is actually not a fatal error. 

Is there a good way to catch the error and throw as exception?

```
try{
    myClassLoader.makeClass(className, classData);
}
catch(Throwable t){
    log.error("Class load failed");
    // throw as an Exception instead
}

```

Does this make sense? I don't want this to be fatal but rather just exit without return. The key here is that I want the full stack trace and information associated with the `NoClassDefFoundError`. It is simple to catch the error it is harder to keep all of the associated information.