Class ShiroExceptionMapper

  • All Implemented Interfaces:
    javax.ws.rs.ext.ExceptionMapper<org.apache.shiro.ShiroException>

    @Singleton
    @Provider
    public class ShiroExceptionMapper
    extends ExceptionMapperBase
    implements javax.ws.rs.ext.ExceptionMapper<org.apache.shiro.ShiroException>
    • Constructor Detail

      • ShiroExceptionMapper

        public ShiroExceptionMapper​(@Context
                                    javax.ws.rs.core.UriInfo uriInfo)
    • Method Detail

      • toResponse

        public javax.ws.rs.core.Response toResponse​(org.apache.shiro.ShiroException exception)
        Specified by:
        toResponse in interface javax.ws.rs.ext.ExceptionMapper<org.apache.shiro.ShiroException>