Package edu.uci.ics.jung.io.graphml
Class ExceptionConverter
- java.lang.Object
-
- edu.uci.ics.jung.io.graphml.ExceptionConverter
-
public class ExceptionConverter extends java.lang.Object
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 Constructor Description ExceptionConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
convert(java.lang.Exception e)
Converts an exception to the a GraphIOException.
-
-
-
Method Detail
-
convert
public static void convert(java.lang.Exception e) throws GraphIOException
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
-
-