Package ca.uhn.hl7v2.app
Interface ApplicationExceptionHandler<T extends Message>
- All Superinterfaces:
Application<T>
The Interface ApplicationExceptionHandler. Allow applications to handle
parsing and handling errors
- Author:
- Gabriel Landais
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionprocessException(String incomingMessage, String outgoingMessage, Exception e) Process an exception.Methods inherited from interface ca.uhn.hl7v2.app.Application
canProcess, processMessage
-
Method Details
-
processException
Process an exception.- Parameters:
incomingMessage- the incoming message. This is the raw message which was received from the external systemoutgoingMessage- the outgoing message. The response NAK message generated by HAPI.e- the exception- Returns:
- The new outgoing message. This can be set to the value provided
by HAPI in
outgoingMessage, or may be replaced with another message.
-