Class NoSuchElementProvider

  • All Implemented Interfaces:
    javax.ws.rs.ext.ExceptionMapper<java.util.NoSuchElementException>

    @Provider
    public class NoSuchElementProvider
    extends java.lang.Object
    implements javax.ws.rs.ext.ExceptionMapper<java.util.NoSuchElementException>
    Maps an Exception of type NoSuchElementException to a Response HTTP Status of 404 (not found).
    • Method Summary

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

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

      • NoSuchElementProvider

        public NoSuchElementProvider()
    • Method Detail

      • toResponse

        public javax.ws.rs.core.Response toResponse​(java.util.NoSuchElementException exception)
        Specified by:
        toResponse in interface javax.ws.rs.ext.ExceptionMapper<java.util.NoSuchElementException>