Class GenericExceptionMapper

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

    @Provider
    public class GenericExceptionMapper
    extends java.lang.Object
    implements javax.ws.rs.ext.ExceptionMapper<java.lang.Throwable>
    Will produce service output for all exceptions that are not of type PubServerException.
    Since:
    4.0.5
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response toResponse​(java.lang.Throwable e)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GenericExceptionMapper

        public GenericExceptionMapper()
    • Method Detail

      • toResponse

        public javax.ws.rs.core.Response toResponse​(java.lang.Throwable e)
        Specified by:
        toResponse in interface javax.ws.rs.ext.ExceptionMapper<java.lang.Throwable>