Class ExceptionConverter

java.lang.Object
edu.uci.ics.jung.io.graphml.ExceptionConverter

public class ExceptionConverter extends 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 Details

    • ExceptionConverter

      public ExceptionConverter()
  • Method Details

    • convert

      public static void convert(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