com.ibm.commerce.foundation.rest.providers

Class ExceptionEntityProvider

  • java.lang.Object
    • com.ibm.commerce.foundation.rest.providers.ExceptionEntityProvider
  • All Implemented Interfaces:
    javax.ws.rs.ext.ExceptionMapper<java.lang.Throwable>


    @Provider
    public class ExceptionEntityProvider
    extends java.lang.Object
    implements javax.ws.rs.ext.ExceptionMapper<java.lang.Throwable>
    This class formats Throwable.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      javax.ws.rs.core.Response toResponse(java.lang.Throwable throwable)
      This method creates a HTTP response for the exception.
      • Methods inherited from class java.lang.Object

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

      • ExceptionEntityProvider

        public ExceptionEntityProvider()
    • Method Detail

      • toResponse

        public javax.ws.rs.core.Response toResponse(java.lang.Throwable throwable)
        This method creates a HTTP response for the exception.
        Specified by:
        toResponse in interface javax.ws.rs.ext.ExceptionMapper<java.lang.Throwable>
        Parameters:
        throwable - the exception to convert to a HTTP response.
        Returns:
        Response the HTTP response for the exception.