Class MllpException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.camel.component.mllp.MllpException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MllpAcknowledgementException, MllpAcknowledgementGenerationException, MllpInvalidMessageException, MllpReceiveException, MllpWriteException

public class MllpException extends Exception
Base class for all MLLP Exceptions, and also used as a generic MLLP exception
See Also:
  • Constructor Details

    • MllpException

      public MllpException(String message, boolean logPhi)
    • MllpException

      public MllpException(String message, Throwable cause, boolean logPhi)
    • MllpException

      public MllpException(String message, byte[] hl7MessageBytes, boolean logPhi)
    • MllpException

      public MllpException(String message, byte[] hl7MessageBytes, Throwable cause, boolean logPhi)
    • MllpException

      public MllpException(String message, byte[] hl7MessageBytes, byte[] hl7AcknowledgementBytes, boolean logPhi)
    • MllpException

      public MllpException(String message, byte[] hl7MessageBytes, byte[] hl7AcknowledgementBytes, Throwable cause, boolean logPhi)
  • Method Details

    • hasHl7MessageBytes

      public boolean hasHl7MessageBytes()
      Determine if there is an HL7 message payload associated with this exception.
      Returns:
      true if this exception contains an HL7 message payload; false otherwise
    • getHl7MessageBytes

      public byte[] getHl7MessageBytes()
      Get the HL7 message payload associated with this exception, if any.
      Returns:
      the HL7 message payload; null if a message payload is not associated with this exception
    • hasHl7AcknowledgementBytes

      public boolean hasHl7AcknowledgementBytes()
      Determine if there is an HL7 message payload associated with this exception.
      Returns:
      true if this exception contains an HL7 message payload; false otherwise
    • getHl7AcknowledgementBytes

      public byte[] getHl7AcknowledgementBytes()
      Get the HL7 acknowledgement payload associated with this exception, if any.
      Returns:
      the HL7 acknowledgement payload; null if an acknowledgement payload is not associated with this exception
    • getMessage

      public String getMessage()
      Override the base version of this method, and include the HL7 Message and Acknowledgement, if any
      Overrides:
      getMessage in class Throwable
      Returns:
      the detail message of this MLLP Exception