com.ddtek.xmlconverter.exception
Class ConverterArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.ddtek.xmlconverter.exception.ConverterException
com.ddtek.xmlconverter.exception.ConverterArgumentException
- All Implemented Interfaces:
- com.ddtek.xmlconverter.adapter.edi.EDIErrorDetails, com.ddtek.xmlconverter.adapter.edi.EDISegmentLocator, Serializable
public class ConverterArgumentException
- extends ConverterException
This exception is thrown if Converter.convert is called with an incorrect
Source or Result argument.
When converting non XML data to XML, most converters will accept input from either
a byte stream InputStream or character stream Reader.
Some converters however, (eg EDI or Binary) cannot accept a character stream source. If a
character stream source is passed to one of these converters as the
Source then the converter will throw a ConverterArgumentException.
When converting XML data to non XML, most converters will send output to either a
byte stream OutputStream or a character stream Writer.
Some converters however, (eg EDI or Binary) cannot generate character stream output.
If a character stream result is passed to one of these converters as the
Result then the converter will throw a ConverterArgumentException.
If a to-XML converter is called with an XML source (
XMLStreamReaderSource,
XMLStreamWriterSource,
DOMSource or
SAXSource)
then it will throw a ConverterArgumentException.
If a from-XML converter is called with an XML result (
XMLStreamReaderResult,
XMLStreamWriterResult,
DOMResult or
SAXResult)
then it will throw a ConverterArgumentException.
- See Also:
- Serialized Form
| Methods inherited from class com.ddtek.xmlconverter.exception.ConverterException |
getDataLine, getEndOffset, getError, getErrorCode, getErrorContext, getErrorLine, getLine, getOffset, getSegment, getSegmentLength, getSegmentNumber, getSegmentObj, getSupplementalInfo, isNestedFatalException, reportedToListener, setErrorCode, setNestedFatalException, setReportedToListener, setSegment, simpleElement, UnwrapInstantiationException, WrapAsConverterException, WrapAsEDIConverterException, WrapAsInternalConverterError, WrapAsIOException, WrapAsRuntimeException, WrapAsSAXException, WrapAsSAXParseException, WrapAsTransformerException, WrapAsXMLStreamException, writeToXML |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from interface com.ddtek.xmlconverter.adapter.edi.EDIErrorDetails |
getMessage |