Package ca.uhn.hl7v2
Class HL7Exception
java.lang.Object
java.lang.Throwable
java.lang.Exception
ca.uhn.hl7v2.AbstractHL7Exception
ca.uhn.hl7v2.HL7Exception
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataTypeException,EncodingNotSupportedException,ProfileNotFollowedException,ProfileNotHL7CompliantException,TimeoutException,TransportException
Represents an exception encountered while processing an HL7 message.
- Author:
- Bryan Tripp (bryan_tripp@sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.useErrorCodestatic final intDeprecated.useErrorCodestatic final intDeprecated.useErrorCodestatic final intDeprecated.useErrorCodestatic final intDeprecated.useErrorCodestatic final intDeprecated.useErrorCodestatic final intDeprecated.useErrorCodestatic final intDeprecated.useErrorCodestatic final intDeprecated.useErrorCodestatic final intDeprecated.useErrorCodestatic final intDeprecated.useErrorCodestatic final intDeprecated.useErrorCodestatic final intDeprecated.useErrorCode -
Constructor Summary
ConstructorsConstructorDescriptionHL7Exception(String message) Creates an HL7Exception with the code APPLICATION_INTERNAL_ERRORHL7Exception(String message, int errorCondition) Deprecated.use HL7Exception(String, ErrorCode)HL7Exception(String message, int errorCondition, Throwable cause) Deprecated.use HL7Exception(String, ErrorCode, Throwable)HL7Exception(String message, ErrorCode error) Creates an HL7Exception.HL7Exception(String message, ErrorCode error, Throwable cause) Creates an HL7Exception.HL7Exception(String message, Throwable cause) Creates an HL7Exception with the code APPLICATION_INTERNAL_ERRORHL7Exception(Throwable cause) Creates an HL7Exception with the code APPLICATION_INTERNAL_ERROR -
Method Summary
Methods inherited from class ca.uhn.hl7v2.AbstractHL7Exception
getError, getErrorCode, getLocation, getMessage, getMessageWithoutLocation, getResponseMessage, getSeverity, populateResponse, setError, setErrorCode, setFieldPosition, setLocation, setResponseMessage, setSegmentName, setSegmentRepetition, setSeverityMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ACK_AA
Deprecated.Original mode: Application Accept - Enhanced mode: Application acknowledgment: Accept- See Also:
-
ACK_AE
Deprecated.Original mode: Application Error - Enhanced mode: Application acknowledgment: Error- See Also:
-
ACK_AR
Deprecated.Original mode: Application Reject - Enhanced mode: Application acknowledgment: Reject- See Also:
-
ACK_CA
Deprecated.Enhanced mode: Accept acknowledgment: Commit Accept- See Also:
-
ACK_CE
Deprecated.Enhanced mode: Accept acknowledgment: Commit Error- See Also:
-
ACK_CR
Deprecated.Enhanced mode: Accept acknowledgment: Commit Reject- See Also:
-
MESSAGE_ACCEPTED
Deprecated.useErrorCode- See Also:
-
SEGMENT_SEQUENCE_ERROR
Deprecated.useErrorCode- See Also:
-
REQUIRED_FIELD_MISSING
Deprecated.useErrorCode- See Also:
-
DATA_TYPE_ERROR
Deprecated.useErrorCode- See Also:
-
TABLE_VALUE_NOT_FOUND
Deprecated.useErrorCode- See Also:
-
UNSUPPORTED_MESSAGE_TYPE
Deprecated.useErrorCode- See Also:
-
UNSUPPORTED_EVENT_CODE
Deprecated.useErrorCode- See Also:
-
UNSUPPORTED_PROCESSING_ID
Deprecated.useErrorCode- See Also:
-
UNSUPPORTED_VERSION_ID
Deprecated.useErrorCode- See Also:
-
UNKNOWN_KEY_IDENTIFIER
Deprecated.useErrorCode- See Also:
-
DUPLICATE_KEY_IDENTIFIER
Deprecated.useErrorCode- See Also:
-
APPLICATION_RECORD_LOCKED
Deprecated.useErrorCode- See Also:
-
APPLICATION_INTERNAL_ERROR
Deprecated.useErrorCode- See Also:
-
-
Constructor Details
-
HL7Exception
Deprecated.use HL7Exception(String, ErrorCode, Throwable)Creates an HL7Exception.- Parameters:
errorCondition- a code describing the the error condition, from HL7 table 0357 (see section 2.16.8 of standard v 2.4) - ErrorCode defines these codes that can be used here (e.g. ErrorCode.UNSUPPORTED_MESSAGE_TYPE.getCode())cause- The exception that caused this exception to be thrown.
-
HL7Exception
Creates an HL7Exception.- Parameters:
message- error messageerror- a code describing the the error condition, from HL7 table 0357 (see section 2.16.8 of standard v 2.4)cause- The exception that caused this exception to be thrown.
-
HL7Exception
Deprecated.use HL7Exception(String, ErrorCode)Creates an HL7Exception.- Parameters:
errorCondition- a code describing the the error condition, from HL7 table 0357 (see section 2.16.8 of standard v 2.4) - ErrorCode defines these codes that can be used here (e.g. ErrorCode.UNSUPPORTED_MESSAGE_TYPE.getCode())
-
HL7Exception
Creates an HL7Exception.- Parameters:
message- error messageerror- a code describing the the error condition, from HL7 table 0357 (see section 2.16.8 of standard v 2.4).
-
HL7Exception
Creates an HL7Exception with the code APPLICATION_INTERNAL_ERROR- Parameters:
message- error messagecause- The excption that caused this exception tobe thrown.
-
HL7Exception
Creates an HL7Exception with the code APPLICATION_INTERNAL_ERROR- Parameters:
cause- The excption that caused this exception tobe thrown.
-
HL7Exception
Creates an HL7Exception with the code APPLICATION_INTERNAL_ERROR- Parameters:
message- error message
-
-
Method Details
-
getDetail
-
setDetail
- Parameters:
detail- context details for this exception instance
-
AcknowledgmentCode