Package ca.uhn.hl7v2.protocol
Interface ReceivingApplicationExceptionHandler
public interface ReceivingApplicationExceptionHandler
The Interface ReceivingApplicationExceptionHandler. Allow applications to handle
parsing and handling errors.
- Author:
- Gabriel Landais
-
Method Summary
-
Method Details
-
processException
String processException(String incomingMessage, Map<String, Object> incomingMetadata, String outgoingMessage, Exception e) Process an exception.- Parameters:
incomingMessage- the incoming message. This is the raw message which was received from the external systemincomingMetadata- Any metadata that accompanies the incoming message. SeeTransportable.getMetadata()outgoingMessage- the outgoing message. The response NAK message generated by HAPI.e- the exception which was received- Returns:
- The new outgoing message. This can be set to the value provided
by HAPI in
outgoingMessage, or may be replaced with another message. This method may not returnnull.
-