Package org.openehealth.ipf.modules.hl7
Class HL7v2Exception
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.openehealth.ipf.modules.hl7.HL7v2Exception
- All Implemented Interfaces:
Serializable
HL7v2Exception extends
RuntimeException
so it need not to be caught.
All calls are delegated to the contained HL7Exception
- Author:
- Christian Ohr, Marek Vaclavik
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetError()
int
populateResponse
(Message emptyResponse, AcknowledgmentCode acknowledgmentCode, int repetition) void
void
void
setErrorCode
(int errorCode) void
setFieldPosition
(int pos) void
setLocation
(Location location) void
setResponseMessage
(Message responseMessage) void
setSegmentName
(String segmentName) void
setSegmentRepetition
(int segmentRepetition) void
setSeverity
(Severity severity) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HL7v2Exception
-
-
Method Details
-
setSegmentRepetition
public void setSegmentRepetition(int segmentRepetition) -
getError
-
setFieldPosition
public void setFieldPosition(int pos) -
setError
-
populateResponse
public Message populateResponse(Message emptyResponse, AcknowledgmentCode acknowledgmentCode, int repetition) throws HL7Exception - Throws:
HL7Exception
-
getMessageWithoutLocation
-
getSeverity
-
setResponseMessage
-
setDetail
-
setErrorCode
public void setErrorCode(int errorCode) -
setSeverity
-
getErrorCode
public int getErrorCode() -
setSegmentName
-
getResponseMessage
-
setLocation
-
getLocation
-
getMessage
- Overrides:
getMessage
in classThrowable
-