Class GamevalNotFoundException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.botwithus.bot.api.gameval.GamevalNotFoundException
All Implemented Interfaces:
Serializable

public final class GamevalNotFoundException extends RuntimeException
A gameval name did not resolve. Thrown by GamevalIndex.require(GamevalType, String) — the fail-fast counterpart to GamevalIndex.id(GamevalType, String), for the common script case where a missing name means the script cannot proceed anyway.

Also thrown when the index itself is unavailable (no gameval.sqlite on disk), which is why the message names both possibilities.

See Also:
  • Constructor Details

    • GamevalNotFoundException

      public GamevalNotFoundException(GamevalType type, String gameval, boolean indexAvailable)
  • Method Details

    • type

      public GamevalType type()
      Namespace the lookup was made in.
    • gameval

      public String gameval()
      The name that failed to resolve.