Skip to content

GenerationFailed ​

Rasuvaeff\PropertyTesting\Runner\GenerationFailed

Class — Package: property-testing-core — Source — Version: v1.0.0-1-g88fdee2

Implements: Runner\PropertyResult

A generator could not produce a valid value (e.g. a filter whose predicate rejected every draw) — a clean failure instead of an uncaught crash.

Constructor ​

php
__construct(
    GenerationExhaustedException $exception,
)
ParameterTypeDefaultDescription
$exceptionGenerationExhaustedExceptionrequired

Methods ​

failure() ​

php
failure(): Throwable

The engine exception describing the failure — the same type and message the package has always reported (PropertyViolationException for a falsification, and so on). Null for a pass.

Documentation inherited from Runner\PropertyResult.