Class ShowdownImportException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.pixelmonmod.pixelmon.api.pokemon.export.exception.PokemonImportException
com.pixelmonmod.pixelmon.api.pokemon.export.exception.ShowdownImportException
- All Implemented Interfaces:
Serializable
Exception fired when a Showdown import has a critical flaw that causes the
Pokemon not to import.
- See Also:
-
Constructor Summary
ConstructorDescriptionShowdownImportException
(String entireText, String reason, Object failedValue, ShowdownFieldType field, String value) Default constructor -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.pokemon.export.exception.PokemonImportException
getEntireText, getFailedValue, getReason
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ShowdownImportException
public ShowdownImportException(String entireText, String reason, Object failedValue, ShowdownFieldType field, String value) Default constructor- Parameters:
entireText
- All imported textreason
- The reason it failedfield
- The field it failed onvalue
- The value that caused the error
-
-
Method Details
-
getField
Gets the showdown field that the import failed on- Returns:
- The field import failed on
-
getValue
Gets the value that was incorrect/erroneous- Returns:
- The errored value
-