Class InvalidArraySizeException

  • All Implemented Interfaces:
    java.io.Serializable

    public class InvalidArraySizeException
    extends java.lang.RuntimeException
    Exception for when one of the requested geometry generation arrays is not big enough to contain the data requested.

    Version:
    $Revision: 1.1 $
    Author:
    Justin Couch
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InvalidArraySizeException​(int requested, int given)
      Create an exception that contains a prefabricated message.
      InvalidArraySizeException​(java.lang.String msg, int requested, int given)
      Create an exception that contains the given message plus a pre-fabricated part.
    • Method Summary

      • 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

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

      • InvalidArraySizeException

        public InvalidArraySizeException​(int requested,
                                         int given)
        Create an exception that contains a prefabricated message.
        Parameters:
        requested - The required size of the array
        given - The supplied array size
      • InvalidArraySizeException

        public InvalidArraySizeException​(java.lang.String msg,
                                         int requested,
                                         int given)
        Create an exception that contains the given message plus a pre-fabricated part. Typically the base message is just the array that does not have the right size.
        Parameters:
        msg - The base message to use
        requested - The required size of the array
        given - The supplied array size