Kees de Kooter
Kees de Kooter

Reputation: 7195

How can I suppress the stacktraces and html in Wicket development mode

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

Answers (2)

martin-g
martin-g

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

EightyEight
EightyEight

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

Related Questions