DegeneratePolygonException
The rejection of a vertex list that closes no polygon.
Thrown by the Polygon constructor for fewer than 3 vertices, a vertex at infinity, or two consecutive vertices — the last→first wrap included — coinciding at the SCALE quantum: their shared edge would collapse, the same coincident-endpoint rule Segment enforces. The Polygon.Rectangle factory throws it for an at-infinity corner or an extent that rounds to zero.