Package me.wobblyyyy.pathfinder.error
Class InvalidPathException
java.lang.Object
java.lang.Throwable
java.lang.Exception
me.wobblyyyy.pathfinder.error.InvalidPathException
- All Implemented Interfaces:
java.io.Serializable
public class InvalidPathException
extends java.lang.Exception
A type of exception used to signify when a path that was provided by a user
is in some way invalid.
Path generation is stopped whenever an invalid path is presented. If you're wondering why exactly a path is invalid, the likely reasons are:
- You didn't pass enough parameters.
- You tried to find a path to a target outside of the map.
- Since:
- 0.1.0
- Author:
- Colin Robertson
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description InvalidPathException(java.lang.String exception)
Throw a new InvalidPathException. -
Method Summary
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 Details
-
InvalidPathException
public InvalidPathException(java.lang.String exception)Throw a new InvalidPathException.- Parameters:
exception
- the exception message.
-