Class ApiExceptionMapper

  • All Implemented Interfaces:
    javax.ws.rs.ext.ExceptionMapper<org.sdase.commons.shared.api.error.ApiException>

    public class ApiExceptionMapper
    extends java.lang.Object
    implements javax.ws.rs.ext.ExceptionMapper<org.sdase.commons.shared.api.error.ApiException>
    Exception Mapper for ApiException that should be used within the business logic to inform the clients about problems during processing
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response toResponse​(org.sdase.commons.shared.api.error.ApiException e)  
      • Methods inherited from class java.lang.Object

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

      • ApiExceptionMapper

        public ApiExceptionMapper()
    • Method Detail

      • toResponse

        public javax.ws.rs.core.Response toResponse​(org.sdase.commons.shared.api.error.ApiException e)
        Specified by:
        toResponse in interface javax.ws.rs.ext.ExceptionMapper<org.sdase.commons.shared.api.error.ApiException>