sn3d/lime-mvc — Issue #1: DefaultExceptionHandler
Author: taharqa
Created: 2012-03-07 00:02:01+00:00
State: open

Hello There,

when trying to configure a default exceptionhandler like this (like describe in the wiki)

bind(ExceptionHandler.class).annotatedWith(Names.named(ExceptionResolver.DEFAULT_EXCEPTIONHANDLER_NAME))
.toInstance(new NetAppExceptionHandler());

I have the following exception

com.google.inject.CreationException: Guice creation errors:

1) A binding to org.zdevra.guice.mvc.ExceptionHandler annotated with @com.google.inject.name.Named(value=defaultExceptionHandler) was already configured at org.zdevra.guice.mvc.MvcModule.configureServlets(Unknown Source).

Seems a bug to me, we can't redefine the defaut exception handler.

I'm using version 0.4.0 of lime-mvc.

Thanks