Class BattleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.pixelmonmod.pixelmon.battles.controller.BattleException
- All Implemented Interfaces:
Serializable
Thrown when an error occurs during import of
Pokemon
- See Also:
-
Constructor Summary
ConstructorDescriptionBattleException
(String failureType, String failureReason, PixelmonWrapper pw) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionGets the pokemon who's action caused the failure.Gets the reason the action failedgetType()
Gets the type of battle failureMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BattleException
Default constructor- Parameters:
failureType
- The type of the battle failurefailureReason
- The reason it failedpw
- The pokemon who's action caused the failure
-
-
Method Details
-
getType
Gets the type of battle failure- Returns:
- The battle failure
-
getReason
Gets the reason the action failed- Returns:
- The reason
-
getOffendingPokemon
Gets the pokemon who's action caused the failure.- Returns:
- The pokemon
-