com.ddtek.xmlconverter.exception
Class ConverterArgumentException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended bycom.ddtek.xmlconverter.exception.ConverterException
                  extended bycom.ddtek.xmlconverter.exception.ConverterArgumentException
All Implemented Interfaces:
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

Constructor Summary
 
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