Package com.jgalgo.graph
Class NoSuchEdgeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
com.jgalgo.graph.NoSuchEdgeException
- All Implemented Interfaces:
Serializable
Exception thrown when an edge is not found in a graph.
- Author:
- Barak Ugav
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic NoSuchEdgeException
ofEdge
(int edgeId) Create a new exception of a missing edge by itsint
identifier.static NoSuchEdgeException
Create a new exception of a missing edge by its identifier.static NoSuchEdgeException
ofIndex
(int edgeIdx) Create a new exception of a missing edge by its index.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
ofIndex
Create a new exception of a missing edge by its index.The index of an edge is the index of the edge in the
IndexGraph
of the graph, accessed byGraph.indexGraph()
. In case the graph is an index graph, and identifier and the index of an edge are the same.- Parameters:
edgeIdx
- the index of the missing edge- Returns:
- the exception
-
ofEdge
Create a new exception of a missing edge by its identifier.- Parameters:
edgeId
- the identifier of the missing edge- Returns:
- the exception
-
ofEdge
Create a new exception of a missing edge by itsint
identifier.This is a specification of
ofEdge(Object)
forIntGraph
.- Parameters:
edgeId
- the identifier of the missing edge- Returns:
- the exception
-