Package search

Class 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 Details

    • FrontierEmptyException

      public FrontierEmptyException()
    • FrontierEmptyException

      public FrontierEmptyException​(Throwable cause)
      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 the pop method.