com.merge.HL7
Class HL7Exception

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.merge.HL7.HL7Exception
All Implemented Interfaces:
java.io.Serializable

public class HL7Exception
extends java.lang.RuntimeException

Represents an exception thrown by the HL7 toolkit.

See Also:
Serialized Form

Field Summary
 int ErrorCode
          This field contains an error code that can be used to identify the type of error that generated this exception.
static int FILE_ACCESS_ERROR
          The error code for failed file operations.
static int INVALID_ARGUMENT
          The error code for errors in method arguments.
static int INVALID_COMPONENT_INDEX
          The error code for invalid component or subcomponent indexes.
static int INVALID_CONFIGURATION
          The error code for invalid configuration entries.
static int INVALID_DATA_TYPE
          The error code for errors related to mismatched HL7 data types.
static int INVALID_SEQUENCE_NUMBER
          The error code for invalid field sequence numbers.
static int LICENSE_ERROR
          The error code for invalid licenses.
static int MAPPING_SYNTAX_ERROR
          The error code for syntax errors in the mapping script.
static int NETWORK_ERROR
          The error code for failed network operations.
static int NORMALIZATION_ERROR
          The error code for message normalization errors.
static int SYSTEM_ERROR
          The error code for system errors.
static int UNKNOWN_ERORR
          The error code for errors that are not defined.
 
Constructor Summary
HL7Exception(int errorCode)
          Initializes a new HLException object with an error code.
HL7Exception(int errorCode, java.lang.String description)
          Initializes a new HLException object with an error code and a message.
HL7Exception(int errorCode, java.lang.String description, java.lang.Throwable innerException)
          Initializes a new HLException object with an error code, a message and an exception instance that triggered this exception.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ErrorCode

public final int ErrorCode
This field contains an error code that can be used to identify the type of error that generated this exception. Valid values for this field are defined as constants in this class.


UNKNOWN_ERORR

public static final int UNKNOWN_ERORR
The error code for errors that are not defined.

See Also:
Constant Field Values

INVALID_ARGUMENT

public static final int INVALID_ARGUMENT
The error code for errors in method arguments.

See Also:
Constant Field Values

SYSTEM_ERROR

public static final int SYSTEM_ERROR
The error code for system errors.

See Also:
Constant Field Values

INVALID_COMPONENT_INDEX

public static final int INVALID_COMPONENT_INDEX
The error code for invalid component or subcomponent indexes.

See Also:
Constant Field Values

INVALID_DATA_TYPE

public static final int INVALID_DATA_TYPE
The error code for errors related to mismatched HL7 data types.

See Also:
Constant Field Values

NORMALIZATION_ERROR

public static final int NORMALIZATION_ERROR
The error code for message normalization errors.

See Also:
Constant Field Values

MAPPING_SYNTAX_ERROR

public static final int MAPPING_SYNTAX_ERROR
The error code for syntax errors in the mapping script.

See Also:
Constant Field Values

FILE_ACCESS_ERROR

public static final int FILE_ACCESS_ERROR
The error code for failed file operations.

See Also:
Constant Field Values

LICENSE_ERROR

public static final int LICENSE_ERROR
The error code for invalid licenses.

See Also:
Constant Field Values

INVALID_SEQUENCE_NUMBER

public static final int INVALID_SEQUENCE_NUMBER
The error code for invalid field sequence numbers.

See Also:
Constant Field Values

INVALID_CONFIGURATION

public static final int INVALID_CONFIGURATION
The error code for invalid configuration entries.

See Also:
Constant Field Values

NETWORK_ERROR

public static final int NETWORK_ERROR
The error code for failed network operations.

See Also:
Constant Field Values
Constructor Detail

HL7Exception

public HL7Exception(int errorCode)
Initializes a new HLException object with an error code. The exception message is generated based on the error code.

Parameters:
errorCode - One of the error code defined by static fields in this class.

HL7Exception

public HL7Exception(int errorCode,
                    java.lang.String description)
Initializes a new HLException object with an error code and a message.

Parameters:
errorCode - One of the error code defined by static fields in this class.
description - The description of the problem that generated this exception.

HL7Exception

public HL7Exception(int errorCode,
                    java.lang.String description,
                    java.lang.Throwable innerException)
Initializes a new HLException object with an error code, a message and an exception instance that triggered this exception.

Parameters:
errorCode - One of the error code defined by static fields in this class.
description - The description of the problem that generated this exception.
innerException - The exception that caused this exception.

Copyright © 2010 Merge Healthcare Inc. All Rights Reserved.