edu.uci.ics.jung.io.graphml
Class ExceptionConverter

java.lang.Object
  extended by 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.

Author:
Nathan Mittler - nathan.mittler@gmail.com

Constructor Summary
ExceptionConverter()
           
 
Method Summary
static void convert(Exception e)
          Converts an exception to the a GraphIOException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionConverter

public ExceptionConverter()
Method Detail

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


Copyright © 2009. All Rights Reserved.