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
public class MllpException extends Exception
Base class for all MLLP Exceptions, and also used as a generic MLLP exception- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MllpException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getHl7AcknowledgementBytes()
Get the HL7 acknowledgement payload associated with this exception, if any.byte[]
getHl7MessageBytes()
Get the HL7 message payload associated with this exception, if any.String
getMessage()
Override the base version of this method, and include the HL7 Message and Acknowledgement, if anyboolean
hasHl7AcknowledgementBytes()
Determine if there is an HL7 message payload associated with this exception.boolean
hasHl7MessageBytes()
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 Detail
-
MllpException
public MllpException(String message, 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)
-
-
Method Detail
-
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 classThrowable
- Returns:
- the detail message of this MLLP Exception
-
-