Class 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.
    Author:
    Dimitrios Michail
    See Also:
    Serialized Form
    • 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.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

      • LinkPredictionIndexNotWellDefinedException

        public LinkPredictionIndexNotWellDefinedException()
        Constructs a new exception with null as its detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.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 to Throwable.initCause(java.lang.Throwable).
        Parameters:
        message - the detail message. The detail message is saved for later retrieval by the Throwable.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 to Throwable.initCause(java.lang.Throwable).
        Parameters:
        message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
        vertexPair - the vertex pair which caused the error. The pair is saved for later retrieval by the getVertexPair() 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