Class 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.
    Author:
    Nathan Mittler - nathan.mittler@gmail.com
    • 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.
      • 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​(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