public class HoneybadgerErrorHandler
extends play.http.DefaultHttpErrorHandler
| Modifier and Type | Field and Description |
|---|---|
protected play.Environment |
environment |
protected play.api.OptionalSourceMapper |
sourceMapper |
| Constructor and Description |
|---|
HoneybadgerErrorHandler(play.Configuration configuration,
play.Environment environment,
play.api.OptionalSourceMapper sourceMapper,
javax.inject.Provider<play.api.routing.Router> routes) |
| Modifier and Type | Method and Description |
|---|---|
play.libs.F.Promise<play.mvc.Result> |
onServerError(play.mvc.Http.RequestHeader request,
java.lang.Throwable exception) |
protected play.api.UsefulException |
throwableToUsefulException(java.lang.Throwable throwable)
Convert the given exception to an exception that Play can report more information about.
|
protected final play.Environment environment
protected final play.api.OptionalSourceMapper sourceMapper
@Inject
public HoneybadgerErrorHandler(play.Configuration configuration,
play.Environment environment,
play.api.OptionalSourceMapper sourceMapper,
javax.inject.Provider<play.api.routing.Router> routes)
public play.libs.F.Promise<play.mvc.Result> onServerError(play.mvc.Http.RequestHeader request,
java.lang.Throwable exception)
onServerError in interface play.http.HttpErrorHandleronServerError in class play.http.DefaultHttpErrorHandlerprotected play.api.UsefulException throwableToUsefulException(java.lang.Throwable throwable)
throwable - exception being converted to UsefuleException