Hi,

I'm implementing my own REST endpoint using RealmResourceProvider and I'm thinking how to perform error handling (which is not covered in example).
Is it possible to register my javax.ws.rs.ext.ExceptionMapper subclass to handle my exceptions? I tried to add subclass of it annotated with javax.ws.rs.ext.Provider into my code but it is not used.
I get common error page with:

Stack Trace
org.jboss.resteasy.spi.UnhandledException: com.redhat.developer.keycloak.rest.InvalidParametersException: email param must be specified

Thansk in advance.

Vlastimil

-- 
Vlastimil Elias
Principal Software Engineer
Red Hat Developer | Engineering