Class DataFormatExceptionHandler

java.lang.Object
dev.dsf.fhir.exception.DataFormatExceptionHandler
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<ca.uhn.fhir.parser.DataFormatException>, org.springframework.beans.factory.InitializingBean

@Provider public class DataFormatExceptionHandler extends Object implements jakarta.ws.rs.ext.ExceptionMapper<ca.uhn.fhir.parser.DataFormatException>, org.springframework.beans.factory.InitializingBean
  • Constructor Details

    • DataFormatExceptionHandler

      public DataFormatExceptionHandler(ResponseGenerator responseGenerator)
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • toResponse

      public jakarta.ws.rs.core.Response toResponse(ca.uhn.fhir.parser.DataFormatException exception)
      Specified by:
      toResponse in interface jakarta.ws.rs.ext.ExceptionMapper<ca.uhn.fhir.parser.DataFormatException>