Also don't write this to the log here, just throw another exception with a more descriptive error message. Writing exceptions to the log is up to the application developer.