Class ServerErrorMapper

  • All Implemented Interfaces:
    javax.ws.rs.ext.ExceptionMapper<java.lang.RuntimeException>

    @Provider
    public class ServerErrorMapper
    extends AbstractMapper<java.lang.RuntimeException>
    Mapper for service not found exceptions to the INTERNAL_SERVER_ERROR response code.
    • Constructor Detail

      • ServerErrorMapper

        public ServerErrorMapper()
    • Method Detail

      • responseStatus

        protected javax.ws.rs.core.Response.Status responseStatus()
        Description copied from class: AbstractMapper
        Returns the response status to be given when the exception occurs.
        Specified by:
        responseStatus in class AbstractMapper<java.lang.RuntimeException>
        Returns:
        response status