Class GlobalErrorHandler

  • All Implemented Interfaces:
    jakarta.ws.rs.ext.ExceptionMapper<Exception>

    @Provider
    public class GlobalErrorHandler
    extends Object
    implements jakarta.ws.rs.ext.ExceptionMapper<Exception>
    Author:
    Mougang T.Gasmyr
    • Constructor Detail

      • GlobalErrorHandler

        public GlobalErrorHandler()
    • Method Detail

      • toResponse

        public jakarta.ws.rs.core.Response toResponse​(Exception e)
        Specified by:
        toResponse in interface jakarta.ws.rs.ext.ExceptionMapper<Exception>