Class MapSizeMismatchException

  • All Implemented Interfaces:
    java.io.Serializable

    public class MapSizeMismatchException
    extends java.lang.Exception
    Exception thrown if the size of a map file is unexpected.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      MapSizeMismatchException​(@NotNull java.io.File mapFile, @NotNull Size2D mapSize, @NotNull Size2D otherMapSize)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.io.File getMapFile()
      Returns the map File of the first map.
      @NotNull Size2D getMapSize()
      Returns the size of the first map.
      @NotNull Size2D getOtherMapSize()
      Returns the size of the second map.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MapSizeMismatchException

        public MapSizeMismatchException​(@NotNull
                                        @NotNull java.io.File mapFile,
                                        @NotNull
                                        @NotNull Size2D mapSize,
                                        @NotNull
                                        @NotNull Size2D otherMapSize)
        Creates a new instance.
        Parameters:
        mapFile - the map file of the first map
        mapSize - the size of the first map
        otherMapSize - the size of the second map
    • Method Detail

      • getMapFile

        @NotNull
        public @NotNull java.io.File getMapFile()
        Returns the map File of the first map.
        Returns:
        the map control
      • getMapSize

        @NotNull
        public @NotNull Size2D getMapSize()
        Returns the size of the first map.
        Returns:
        the size
      • getOtherMapSize

        @NotNull
        public @NotNull Size2D getOtherMapSize()
        Returns the size of the second map.
        Returns:
        the size