|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
com.ddtek.xmlconverter.exception.ConverterException
com.ddtek.xmlconverter.adapter.edi.EDIConverterException
public class EDIConverterException
This is a specialized version of
ConverterException
which contains extra information about the context of errors in EDI files.
When a ConverterException
is thrown during the processing of an EDI file, or when a
ConverterListener
is registered and a
warning()
,
error()
, or
fatalError()
is called, in most cases the exception thrown will be an instance of
EDIConverterException.
This exception contains many methods to delve into the context of the specific error. Both warnings and errors may be recovered from, although fatal errors always will end the processing.
ConverterException
,
EDIConverterException
,
Serialized FormField Summary |
---|
Fields inherited from class com.ddtek.xmlconverter.exception.ConverterException |
---|
m_errorCode |
Constructor Summary |
---|
Method Summary | |
---|---|
String |
getCodeListVersion()
If there is a version of the codelists that is in context for the current segment, this returns that version. |
String |
getContentData(int element)
Fetch a specific value from the segment currently being processed. |
String |
getContentData(int composite,
int element)
Fetch a specific value from the segment currently being processed. |
String |
getContentData(int composite,
int subcomposite,
int element)
Fetch a specific value from the segment currently being processed. |
String |
getContentData(int composite,
int subcomposite,
int element,
int repeat)
Fetch a specific value from the segment currently being processed. |
String |
getControlData(String segment,
int element)
Fetch a specific value from an element of the last-seen control segment of the given name. |
String |
getControlData(String segment,
int composite,
int element)
Fetch a specific value from an element of the last-seen control segment of the given name. |
String |
getControllingAgency()
This is the controlling agency. |
String |
getData()
The value of the element being processed at the time of an error |
int |
getDataLine()
Data line number, counting line termination sequences instead of segments. |
String |
getDialect()
The major EDI dialect |
String |
getElement()
Element name if appropriate, or null. |
int |
getElementPosition()
Returns the number of the element relative to the segment. |
String |
getHeaderVersion()
If the header has the potential to be versioned differently than the payload, as for example EDIFACT and X12 allow, then this returns the version of the header. |
int |
getInvalidCharacter()
Return the invalid character which caused this exception. |
int |
getLine()
Line number of error, treating each new segment as a new line. |
String |
getLoopName()
Name of loop containing error, or null. |
String |
getMessageRelease()
This is the release of the current message or transaction set. |
String |
getMessageVersion()
This is the version of the current message or transaction set. |
String |
getNativeCode()
Error code relative to EDI dialect |
String |
getNativeTable()
Table from which error code for local EDI dialect is drawn. |
int |
getOffset()
When available, character offset from the start of the segment. |
int |
getRepetition()
Returns the repetition number for the element within the segment. |
String |
getSegment()
Name of segment containing error, or null. |
int |
getSegmentNumber()
|
char |
getSeverity()
Level of severity of exception |
int |
getSubElementPosition()
Returns the number of the element relative to the composite element. |
int |
getSubSubElementPosition()
Returns the number of the element relative to the composite element nested within another composite. |
String |
getSyntaxLevel()
For EDI dialects such as EDIFACT which have different levels of syntax support, the major version, such as 1, 2, 3 or 4, are returned by this method. |
String |
getSyntaxRelease()
For EDI dialects such as EDIFACT which have different levels of syntax support, the minor version if specified. |
String |
getSystemVersion()
If there is a version of the codelists that is in context for the most recently seen header segment. |
String |
getTransactionSet()
Message name/Transaction set number in which the error occurred, or null. |
String |
getVersion()
A string of any versions or releases specified in the EDI file. |
Methods inherited from class com.ddtek.xmlconverter.exception.ConverterException |
---|
getErrorCode, isNestedFatalException, reportedToListener, setErrorCode, setNestedFatalException, setReportedToListener, simpleElement, UnwrapInstantiationException, WrapAsConverterException, WrapAsEDIConverterException, WrapAsInternalConverterError, WrapAsIOException, WrapAsRuntimeException, WrapAsSAXException, WrapAsSAXParseException, WrapAsTransformerException, WrapAsXMLStreamException |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ddtek.xmlconverter.adapter.edi.EDIErrorDetails |
---|
getMessage |
Constructor Detail |
---|
Method Detail |
---|
public int getLine()
getLine
in interface com.ddtek.xmlconverter.adapter.edi.EDIErrorDetails
getLine
in class ConverterException
public int getSegmentNumber()
getSegmentNumber
in interface com.ddtek.xmlconverter.adapter.edi.EDISegmentLocator
getSegmentNumber
in class ConverterException
public int getDataLine()
getDataLine
in interface com.ddtek.xmlconverter.adapter.edi.EDISegmentLocator
getDataLine
in class ConverterException
public int getElementPosition()
public int getSubElementPosition()
public int getSubSubElementPosition()
public int getRepetition()
public int getOffset()
getOffset
in interface com.ddtek.xmlconverter.adapter.edi.EDIErrorDetails
getOffset
in class ConverterException
public String getElement()
public String getSegment()
getSegment
in interface com.ddtek.xmlconverter.adapter.edi.EDISegmentLocator
getSegment
in class ConverterException
public String getLoopName()
public String getTransactionSet()
public String getDialect()
public char getSeverity()
public String getData()
public String getVersion()
public String getNativeCode()
public String getNativeTable()
public String getControlData(String segment, int element)
segment
- The name of a control segment, such as ISA or UNB.element
- The element sequence number, one-based.
public String getControlData(String segment, int composite, int element)
segment
- The name of a control segment, such as ISA or UNB.composite
- The composite element sequence number, one-based.element
- The element number within the above composite.
public String getContentData(int element)
element
- The element sequence number, one-based.
public String getContentData(int composite, int element)
composite
- The composite element sequence number, one-based.element
- The element number within the above composite.
public String getContentData(int composite, int subcomposite, int element)
composite
- The composite element sequence number, one-based.subcomposite
- The sub-composite element sequence number within the
above composite.element
- The element number within the above sub-composite.
public String getContentData(int composite, int subcomposite, int element, int repeat)
composite
- The top level sequence number, one-based.subcomposite
- The second level sequence number, or 0 if not needed.element
- The third level sequence number, or 0 if not needed.repeat
- The repetition number of the top level element, one-based.
public String getSyntaxLevel()
EDISegmentDetails.getSyntaxLevel()
public String getSyntaxRelease()
EDISegmentDetails.getSyntaxRelease()
public String getMessageVersion()
EDISegmentDetails.getMessageVersion()
public String getMessageRelease()
EDISegmentDetails.getMessageRelease()
public String getCodeListVersion()
EDISegmentDetails.getCodeListVersion()
public String getSystemVersion()
EDISegmentDetails.getSystemVersion()
public String getHeaderVersion()
EDISegmentDetails.getHeaderVersion()
public String getControllingAgency()
For X12, this is the full version number as specified in GS08, since the getMessageRelease() is set to the normalized six-digit version number. This way, user applications can query this field to get any 'X' suffix or extended version numbering for local dialects like HIPAA.
For EDIFACT, this comes from the UNH0204 or UIH0105 elements.
EDISegmentDetails.getControllingAgency()
public int getInvalidCharacter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |