Class ShowdownImportException

All Implemented Interfaces:
Serializable

public class ShowdownImportException extends PokemonImportException
Exception fired when a Showdown import has a critical flaw that causes the Pokemon not to import.
See Also:
  • Constructor Details

    • ShowdownImportException

      public ShowdownImportException(String entireText, String reason, Object failedValue, ShowdownFieldType field, String value)
      Default constructor
      Parameters:
      entireText - All imported text
      reason - The reason it failed
      field - The field it failed on
      value - The value that caused the error
  • Method Details

    • getField

      public ShowdownFieldType getField()
      Gets the showdown field that the import failed on
      Returns:
      The field import failed on
    • getValue

      public String getValue()
      Gets the value that was incorrect/erroneous
      Returns:
      The errored value