Convert the given exception to an exception that Play can report more information about.
Convert the given exception to an exception that Play can report more information about.
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.
Extracted so the Java default error handler can reuse this functionality