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
public class HL7v2Exception extends RuntimeException
HL7v2Exception extendsRuntimeException
so it need not to be caught. All calls are delegated to the containedHL7Exception
- Author:
- Christian Ohr, Marek Vaclavik
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HL7v2Exception(HL7Exception nested)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorCode
getError()
int
getErrorCode()
Location
getLocation()
String
getMessage()
String
getMessageWithoutLocation()
Message
getResponseMessage()
Severity
getSeverity()
Message
populateResponse(Message emptyResponse, AcknowledgmentCode acknowledgmentCode, int repetition)
void
setDetail(Object detail)
void
setError(ErrorCode errorCode)
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 Detail
-
HL7v2Exception
public HL7v2Exception(HL7Exception nested)
-
-
Method Detail
-
setSegmentRepetition
public void setSegmentRepetition(int segmentRepetition)
-
getError
public ErrorCode getError()
-
setFieldPosition
public void setFieldPosition(int pos)
-
setError
public void setError(ErrorCode errorCode)
-
populateResponse
public Message populateResponse(Message emptyResponse, AcknowledgmentCode acknowledgmentCode, int repetition) throws HL7Exception
- Throws:
HL7Exception
-
getMessageWithoutLocation
public String getMessageWithoutLocation()
-
getSeverity
public Severity getSeverity()
-
setResponseMessage
public void setResponseMessage(Message responseMessage)
-
setDetail
public void setDetail(Object detail)
-
setErrorCode
public void setErrorCode(int errorCode)
-
setSeverity
public void setSeverity(Severity severity)
-
getErrorCode
public int getErrorCode()
-
setSegmentName
public void setSegmentName(String segmentName)
-
getResponseMessage
public Message getResponseMessage()
-
setLocation
public void setLocation(Location location)
-
getLocation
public Location getLocation()
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-