Module org.jgrapht.core
Package org.jgrapht.alg.linkprediction
Class LinkPredictionIndexNotWellDefinedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.jgrapht.alg.linkprediction.LinkPredictionIndexNotWellDefinedException
-
- All Implemented Interfaces:
java.io.Serializable
public class LinkPredictionIndexNotWellDefinedException extends java.lang.RuntimeException
An exception used to notify that a link prediction index is not well defined.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
private Pair<?,?>
vertexPair
-
Constructor Summary
Constructors Constructor Description LinkPredictionIndexNotWellDefinedException()
Constructs a new exception withnull
as its detail message.LinkPredictionIndexNotWellDefinedException(java.lang.String message)
Constructs a new exception with the specified detail message.LinkPredictionIndexNotWellDefinedException(java.lang.String message, Pair<?,?> vertexPair)
Constructs a new exception with the specified detail message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pair<?,?>
getVertexPair()
Get the vertex pair which caused the error.void
setVertexPair(Pair<?,?> vertexPair)
Set the vertex pair which caused the error.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
vertexPair
private Pair<?,?> vertexPair
-
-
Constructor Detail
-
LinkPredictionIndexNotWellDefinedException
public LinkPredictionIndexNotWellDefinedException()
Constructs a new exception withnull
as its detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.
-
LinkPredictionIndexNotWellDefinedException
public LinkPredictionIndexNotWellDefinedException(java.lang.String message)
Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
LinkPredictionIndexNotWellDefinedException
public LinkPredictionIndexNotWellDefinedException(java.lang.String message, Pair<?,?> vertexPair)
Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.vertexPair
- the vertex pair which caused the error. The pair is saved for later retrieval by thegetVertexPair()
method.
-
-
Method Detail
-
getVertexPair
public Pair<?,?> getVertexPair()
Get the vertex pair which caused the error. May be null.- Returns:
- the vertex pair which caused the error
-
setVertexPair
public void setVertexPair(Pair<?,?> vertexPair)
Set the vertex pair which caused the error. May be null.- Parameters:
vertexPair
- the vertex pair to set
-
-