org.graphdrawing.graphml.reader
Class GraphMLParseException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byorg.graphdrawing.graphml.reader.GraphMLParseException
All Implemented Interfaces:
Serializable

public class GraphMLParseException
extends IOException

This exception is thrown when the parser encounters unexpected content.

See Also:
Serialized Form

Constructor Summary
GraphMLParseException()
          Creates new exception.
GraphMLParseException(String s)
          Creates new exception.
GraphMLParseException(String source, Exception innerException)
          Create a new exception that encapsulates the given exception
 
Method Summary
 Exception getInnerException()
          Return a reference to an encapsulated exception
 String getSource()
          Return an identifier for the source where this exception originates
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GraphMLParseException

public GraphMLParseException()
Creates new exception.


GraphMLParseException

public GraphMLParseException(String s)
Creates new exception.

Parameters:
s - message.

GraphMLParseException

public GraphMLParseException(String source,
                             Exception innerException)
Create a new exception that encapsulates the given exception

Parameters:
source - identifier for the source where this exception originates
innerException - an inner exception that is encapsulated by this instance
Method Detail

getInnerException

public Exception getInnerException()
Return a reference to an encapsulated exception

Returns:
a reference to an encapsulated exception, or null if the current instance does not encapsulate one

getSource

public String getSource()
Return an identifier for the source where this exception originates

Returns:
an identifier for the source where this exception originates


Copyright ©2000-2008, yWorks GmbH. All rights reserved.