Class ExceptionMapper

java.lang.Object
oracle.kubernetes.operator.rest.ExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<java.lang.Exception>

@Provider
public class ExceptionMapper
extends java.lang.Object
implements javax.ws.rs.ext.ExceptionMapper<java.lang.Exception>
ExceptionMapper converts non-WebApplicationExceptions into internal server errors and logs warnings for them. It debug logs WebApplicationExceptions then lets them flow through unchanged.
  • Constructor Summary

    Constructors 
    Constructor Description
    ExceptionMapper()
    Construct an ExceptionMapper.
  • Method Summary

    Modifier and Type Method Description
    javax.ws.rs.core.Response toResponse​(java.lang.Exception e)  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • toResponse

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