Class ExperienceCache.LevelNotCalculatedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.Keyle.MyPet.api.skill.experience.ExperienceCache.LevelNotCalculatedException
- All Implemented Interfaces:
Serializable
- Enclosing class:
ExperienceCache
Thrown when a requested level has not yet been computed and cached.
Callers should catch this and compute the value on demand via the active
ExperienceCalculator, then insert the result into the cache.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLevelNotCalculatedException(PetType type, int level) Reports that the cache holds no value for a pet type at a given level. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LevelNotCalculatedException
Reports that the cache holds no value for a pet type at a given level.- Parameters:
type- the pet type asked aboutlevel- the level asked about
-
-
Method Details
-
getType
The pet type whose level could not be computed.- Returns:
- the pet type
-
getLevel
public int getLevel()The level that could not be computed.- Returns:
- the level
-