Assume I have two ExceptionMappers:
public class WebApplicationExceptionMapper implements ExceptionMapper<WebApplicationException>
( class WebApplicationException extends RuntimeException )
public class GenericExceptionMapper implements ExceptionMapper<Throwable>
If WebApplicationException or sub exception of WebApplicationException thrown, which mapper will handle them? can someone please explain it?
Thanks