These docs have moved. The package is frozen at 2.8.1; the current documentation lives on the family site, property-testing. If the redirect did not fire, open the migration guide.
Skip to content

GaveUpException

Rasuvaeff\PropertyTesting\GaveUpException

ClassSourceExtends: RuntimeException

Thrown (as the failure of a property) when discarded inputs exceed the configured budget before the requested number of successful checks completes. It exposes successful, discarded and total attempt counts so the result cannot hide a weak input distribution.

The fix is almost always to construct valid inputs directly (e.g. Gen::flatMap() / Gen::draw()) rather than generating broadly and discarding, so runs are valid by construction.

Properties

PropertyTypeReadonly
propertyNamestringyes
requiredRunsintyes
successfulRunsintyes
discardedRunsintyes
attemptsintyes
maxDiscardsintyes