类 DefaultExceptionMapper

java.lang.Object
com.alibaba.csp.sentinel.adapter.jaxrs.exception.DefaultExceptionMapper
所有已实现的接口:
javax.ws.rs.ext.ExceptionMapper<Throwable>

@Provider public class DefaultExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<Throwable>
sentinel jax-rs adapter provide this exception mapper in case of user throw exception which is not WebApplicationException and not matched by any ExceptionMapper this exception mapper convert exception to Response let ContainerResponseFilter to be called to exit sentinel entry user can add custom ExceptionMapper and config with
引用无效
javax.annotation.Priority
with lower value
作者:
sea
  • 构造器详细资料

    • DefaultExceptionMapper

      public DefaultExceptionMapper()
  • 方法详细资料

    • toResponse

      public javax.ws.rs.core.Response toResponse(Throwable exception)
      指定者:
      toResponse 在接口中 javax.ws.rs.ext.ExceptionMapper<Throwable>