core/play/src/main/java/play/http/DefaultHttpErrorHandler.java
protected final UsefulException throwableToUsefulException(final Throwable throwable) {
    return HttpErrorHandlerExceptions.throwableToUsefulException(
        sourceMapper.sourceMapper(), environment.isProd(), throwable);
  }
protected final UsefulException throwableToUsefulException(final Throwable throwable) {
    return HttpErrorHandlerExceptions.throwableToUsefulException(
        sourceMapper.sourceMapper(), environment.isProd(), throwable);
  }
Convert the given exception to an exception that Play can report more information about.

<p>This will generate an id for the exception, and in dev mode, will load the source code for
the code that threw the exception, making it possible to report on the location that the
exception was thrown from.