Class RuntimeExceptionMapper

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

    public class RuntimeExceptionMapper
    extends java.lang.Object
    implements javax.ws.rs.ext.ExceptionMapper<java.lang.RuntimeException>
    Exception Mapper for RuntimeException that should be used as last resort to avoid default error messages.
    • Method Summary

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

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

      • RuntimeExceptionMapper

        public RuntimeExceptionMapper()
    • Method Detail

      • toResponse

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