Package ptolemy.graph
Class GraphWeightException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- ptolemy.graph.GraphException
-
- ptolemy.graph.GraphWeightException
-
- All Implemented Interfaces:
java.io.Serializable
public class GraphWeightException extends GraphException
Exception for unweighted graphs or graphs with improper weights. This exception can also be thrown due to accessing elements with incorrect weights.- Since:
- Ptolemy II 2.1
- Version:
- $Id$
- Author:
- Mingyung Ko
- See Also:
- Serialized Form
- Pt.AcceptedRating:
- Red (ssb)
- Pt.ProposedRating:
- Red (myko)
-
-
Constructor Summary
Constructors Constructor Description GraphWeightException(java.lang.Object weight, Element element, Graph graph, java.lang.String message)
Constructor with arguments of weight, element, graph, and a message.GraphWeightException(java.lang.String message)
Constructor for a given message.
-
Method Summary
-
Methods inherited from class ptolemy.graph.GraphException
_elementDump, elementDump, graphDump, weightDump
-
-
-
-
Constructor Detail
-
GraphWeightException
public GraphWeightException(java.lang.String message)
Constructor for a given message.- Parameters:
message
- The message.
-
GraphWeightException
public GraphWeightException(java.lang.Object weight, Element element, Graph graph, java.lang.String message)
Constructor with arguments of weight, element, graph, and a message. This exception is generally thrown because of invalid weight association to a specific element. It can also be thrown for unspecific elements by setting theelement
argument tonull
.- Parameters:
weight
- The invalid weight.element
- The element to associate the invalid weight. Setnull
for unspecific elements.graph
- The graph accessed.message
- The exception message.
-
-