unm.cs351.f11.tdrl.p1
Class GraphAnalysisException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by unm.cs351.f11.tdrl.p1.GraphAnalysisException
All Implemented Interfaces:
Serializable

public class GraphAnalysisException
extends Exception

An exception indicating an error or illegal condition when trying to analyze a Graph object. This may arise because of a structural error in the underlying graph, or because an undefined result was requested (such as the mean outdegree of an empty graph, or other undefined quantity.)

Version:
1.0
Author:
terran
See Also:
Serialized Form

Constructor Summary
GraphAnalysisException()
          Construct a default Analysis exception, with no information about why it was generated.
GraphAnalysisException(String msg)
          Construct an Analysis exception with an informative message about why it was generated.
GraphAnalysisException(String message, Throwable cause)
          A combination of GraphAnalysisException(String) and GraphAnalysisException(Throwable) -- generate an exception with both an informative message and an original root cause.
GraphAnalysisException(Throwable cause)
          Construct an Analysis exception that "wraps" another, primary exception.
 
Method Summary
 
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

GraphAnalysisException

public GraphAnalysisException()
Construct a default Analysis exception, with no information about why it was generated. This is discouraged.


GraphAnalysisException

public GraphAnalysisException(String msg)
Construct an Analysis exception with an informative message about why it was generated.

Parameters:
msg - String describing the cause of the exception

GraphAnalysisException

public GraphAnalysisException(Throwable cause)
Construct an Analysis exception that "wraps" another, primary exception. This constructor is used when the original cause of the Analysis exception is that some other exception was generated. (For example, an IOException or somesuch.) You can then generate an Analysis-oriented exception, but keep a record of why it was generated -- what the root cause was.

Parameters:
cause - Exception that originally caused the whole mess

GraphAnalysisException

public GraphAnalysisException(String message,
                              Throwable cause)
A combination of GraphAnalysisException(String) and GraphAnalysisException(Throwable) -- generate an exception with both an informative message and an original root cause.

Parameters:
message - String describing the cause of the exception
cause - Exception that originally caused the whole mess