ca.uhn.hl7v2.app
Interface ApplicationExceptionHandler

All Superinterfaces:
Application
All Known Implementing Classes:
MessageTypeRouter

public interface ApplicationExceptionHandler
extends Application

The Interface ApplicationExceptionHandler. Allow applications to handle parsing and handling errors

Author:
Gabriel Landais
See Also:
Application

Method Summary
 String processException(String incomingMessage, String outgoingMessage, Exception e)
          Process an exception.
 
Methods inherited from interface ca.uhn.hl7v2.app.Application
canProcess, processMessage
 

Method Detail

processException

String processException(String incomingMessage,
                        String outgoingMessage,
                        Exception e)
                        throws HL7Exception
Process an exception.

Parameters:
incomingMessage - the incoming message. This is the raw message which was received from the external system
outgoingMessage - 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.
Throws:
HL7Exception


Copyright © 2001-2012 University Health Network. All Rights Reserved.