Reputation: 7195
Usually the first line in the error message is sufficient in solving the problem so I do not want to pollute my console in Eclipse.
Upvotes: 3
Views: 178
Reputation: 17513
Or in MyApp#init() set: getExceptionSettings().setUnexpectedExceptionDisplay( IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);
This will show the configured "error 500" page and log the exception in the server log files
Upvotes: 1
Reputation: 3460
You can subclass WebRequestCycle and override newRequestCycle in your WebApplication class. In WebRequestCycle you can handle RuntimeExceptions in any manner. There's a good explanation with code samples here.
Upvotes: 4