Class TooManyPointsInPatternError

java.lang.Object
java.lang.Throwable
java.lang.Error
net.algart.math.patterns.TooManyPointsInPatternError
All Implemented Interfaces:
Serializable

public class TooManyPointsInPatternError extends Error

Error thrown if a pattern is extremely large to be correctly processed. "Extremely large" usually means that the number of points of the pattern is greater, or is probably greater, than Integer.MAX_VALUE=231−1, but the method cannot process such number of points due to Java limits, connected with 32-bit indexing. The typical example is Pattern.points() method, which throws this exception if the number of points is greater than Integer.MAX_VALUE: this method returns result as Java Set type, which is limited by 231−1 elements.

Usually OutOfMemoryError is also probable in situations, when this exception is probable.

Author:
Daniel Alievsky
See Also:
  • Constructor Details

    • TooManyPointsInPatternError

      public TooManyPointsInPatternError()
      Constructs an instance of this class.
    • TooManyPointsInPatternError

      public TooManyPointsInPatternError(String message)
      Constructs an instance of this class with the specified detail message.
      Parameters:
      message - the detail message.