Package org.apache.camel.component.mllp
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
Base class for all MLLP Exceptions, and also used as a generic MLLP exception
- See Also:
-
Constructor Summary
ConstructorDescriptionMllpException
(String message, boolean logPhi) MllpException
(String message, byte[] hl7MessageBytes, boolean logPhi) MllpException
(String message, byte[] hl7MessageBytes, byte[] hl7AcknowledgementBytes, boolean logPhi) MllpException
(String message, byte[] hl7MessageBytes, byte[] hl7AcknowledgementBytes, Throwable cause, boolean logPhi) MllpException
(String message, byte[] hl7MessageBytes, Throwable cause, boolean logPhi) MllpException
(String message, Throwable cause, boolean logPhi) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Get the HL7 acknowledgement payload associated with this exception, if any.byte[]
Get the HL7 message payload associated with this exception, if any.Override the base version of this method, and include the HL7 Message and Acknowledgement, if anyboolean
Determine if there is an HL7 message payload associated with this exception.boolean
Determine if there is an HL7 message payload associated with this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MllpException
-
MllpException
-
MllpException
-
MllpException
-
MllpException
public MllpException(String message, byte[] hl7MessageBytes, byte[] hl7AcknowledgementBytes, boolean logPhi) -
MllpException
-
-
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
Override the base version of this method, and include the HL7 Message and Acknowledgement, if any- Overrides:
getMessage
in classThrowable
- Returns:
- the detail message of this MLLP Exception
-