Skip to content

PostconditionViolation

Rasuvaeff\PropertyTesting\StateMachine\PostconditionViolation

ClassSourceExtends: RuntimeException

Thrown by StateMachine::check() when a command's Command::postCondition() returns false.

Carries the executed trace (command labels up to and including the failing one), the failing command, and the pre-state model and observed result, so the property runner surfaces exactly which step of the sequence broke.

Properties

PropertyTypeReadonly
tracearrayyes
stepintyes
commandStateMachine\Commandyes
modelmixedyes
resultmixedyes