Class HL7v2Exception

All Implemented Interfaces:
Serializable

public class HL7v2Exception extends RuntimeException
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 Details

    • HL7v2Exception

      public HL7v2Exception(HL7Exception nested)
  • Method Details

    • 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 class Throwable