Package net.algart.math.patterns
Class TooManyPointsInPatternError
java.lang.Object
java.lang.Throwable
java.lang.Error
net.algart.math.patterns.TooManyPointsInPatternError
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorDescriptionConstructs an instance of this class.TooManyPointsInPatternError
(String message) Constructs an instance of this class with the specified detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TooManyPointsInPatternError
public TooManyPointsInPatternError()Constructs an instance of this class. -
TooManyPointsInPatternError
Constructs an instance of this class with the specified detail message.- Parameters:
message
- the detail message.
-