Class ApiExceptionMapper

java.lang.Object
org.sdase.commons.server.jackson.errors.ApiExceptionMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<org.sdase.commons.shared.api.error.ApiException>

public class ApiExceptionMapper extends Object implements jakarta.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
  • Constructor Details

    • ApiExceptionMapper

      public ApiExceptionMapper()
  • Method Details

    • toResponse

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