假设我有两个 ExceptionMapper:
public class WebApplicationExceptionMapper implements ExceptionMapper<WebApplicationException>
( class WebApplicationException extends RuntimeException )
public class GenericExceptionMapper implements ExceptionMapper<Throwable>
如果抛出 WebApplicationException 或 WebApplicationException 的子异常,哪个映射器会处理它们?有人可以解释一下吗?
谢谢