public abstract class AbstractHL7Exception extends Exception
Constructor and Description |
---|
AbstractHL7Exception() |
AbstractHL7Exception(String message) |
AbstractHL7Exception(String message,
Throwable cause) |
AbstractHL7Exception(Throwable cause) |
Modifier and Type | Method and Description |
---|---|
ErrorCode |
getError() |
int |
getErrorCode() |
Location |
getLocation() |
String |
getMessage() |
String |
getMessageWithoutLocation() |
Message |
getResponseMessage() |
Severity |
getSeverity() |
Message |
populateResponse(Message emptyResponse,
AcknowledgmentCode acknowledgmentCode,
int repetition)
Populates the generated response based on this exception.
|
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) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AbstractHL7Exception()
public AbstractHL7Exception(String message, Throwable cause)
public AbstractHL7Exception(String message)
public AbstractHL7Exception(Throwable cause)
public Location getLocation()
public void setLocation(Location location)
public void setFieldPosition(int pos)
public void setSegmentName(String segmentName)
public void setSegmentRepetition(int segmentRepetition)
public int getErrorCode()
public void setErrorCode(int errorCode)
public Severity getSeverity()
public void setSeverity(Severity severity)
public Message getResponseMessage()
public void setResponseMessage(Message responseMessage)
public Message populateResponse(Message emptyResponse, AcknowledgmentCode acknowledgmentCode, int repetition) throws HL7Exception
emptyResponse
- empty response messageacknowledgmentCode
- the acknowledgement codeHL7Exception
- if populating the response failspublic String getMessage()
getMessage
in class Throwable
public String getMessageWithoutLocation()
Copyright © 2001–2017 University Health Network. All rights reserved.