Package edu.uci.ics.jung.io.graphml
Class ExceptionConverter
java.lang.Object
edu.uci.ics.jung.io.graphml.ExceptionConverter
Converts an exception to the a GraphIOException. Runtime exceptions
are checked for the cause. If the cause is an XMLStreamException, it is
converted to a GraphIOException. Otherwise, the RuntimeException is
rethrown.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ExceptionConverter
public ExceptionConverter()
-
-
Method Details
-
convert
Converts an exception to the a GraphIOException. Runtime exceptions are checked for the cause. If the cause is an XMLStreamException, it is converted to a GraphReaderException. Otherwise, the RuntimeException is rethrown.- Parameters:
e
- the exception to be converted- Throws:
GraphIOException
- the converted exception
-