Package search
Class FrontierEmptyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
search.FrontierEmptyException
- All Implemented Interfaces:
Serializable
public class FrontierEmptyException extends IllegalStateException
Thrown when a frontier structure is empty. Generally this
exception indicates something wrong in the implementation of the
frontier, or else something very wrong in the
search
method: this method arises from the
pop
method of the frontier
representation, but pop
is only
called after verifying that isEmpty
is false.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description FrontierEmptyException()
FrontierEmptyException(Throwable cause)
Used when the underlying data structure of the frontier throws an exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FrontierEmptyException
public FrontierEmptyException() -
FrontierEmptyException
Used when the underlying data structure of the frontier throws an exception.- Parameters:
cause
- Exeception caught from a method call on the underlying structure on behalf of thepop
method.
-