Package com.graphs.exceptions.vertex
Class NoSuchVertexIndexException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.graphs.exceptions.vertex.VertexIndexException
com.graphs.exceptions.vertex.NoSuchVertexIndexException
- All Implemented Interfaces:
Serializable
This exception can be thrown whenever a graph does not contain a vertex with a given index.
- Since:
- 1.0
- Version:
- JDK 1.7
- Author:
- Ćukasz Malara
- See Also:
-
Constructor Summary
ConstructorDescriptionNoSuchVertexIndexException
(int index) This constructor creates a new instance of exception with a predefined message based on a given parameter. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoSuchVertexIndexException
public NoSuchVertexIndexException(int index) This constructor creates a new instance of exception with a predefined message based on a given parameter.- Parameters:
index
- numerical index of vertex- Since:
- 1.0
-