|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| 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
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 a subclass of
ConverterException called
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 Form| Constructor Summary | |
EDIConverterException(String msg)
|
|
EDIConverterException(String msg,
Throwable cause)
|
|
EDIConverterException(Throwable cause)
|
|
| Method Summary | |
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 |
getData()
The value of the element being processed at the time of an error |
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. |
int |
getLine()
Line number of error, treating each new segment as a new line. |
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. |
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 |
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 |
WrapAsConverterException, 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 |
| Constructor Detail |
public EDIConverterException(String msg)
public EDIConverterException(Throwable cause)
public EDIConverterException(String msg,
Throwable cause)
| Method Detail |
public int getLine()
public int getElementPosition()
public int getSubElementPosition()
public int getSubSubElementPosition()
public int getRepetition()
public int getOffset()
public String getElement()
public String getSegment()
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 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.repeat - If the outermost element is repeating, the repetition number. This
is one-based, since there is always one instance by definition if an
element is present.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||