Class TargetNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.NullPointerException
net.demilich.metastone.game.targeting.TargetNotFoundException
- All Implemented Interfaces:
Serializable
This exception is thrown when a given target is not found and the game requires one to be found. It is considered a
subclass of
NullPointerException
to stay consistent with the spirit of the Java exception hierarchy.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTargetNotFoundException
(String message, EntityReference reference) Creates a new instance of this exception. -
Method Summary
Modifier and TypeMethodDescriptionThe reference that was failed to be found in the game state.Methods inherited from class java.lang.NullPointerException
fillInStackTrace, getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TargetNotFoundException
Creates a new instance of this exception.- Parameters:
message
-reference
-
-
-
Method Details
-
getReference
The reference that was failed to be found in the game state.- Returns:
- The reference. It may be a
EntityReference.isTargetGroup()
= true
reference (i.e., a "group reference").
-