packages/sql-semantics-mysql/src/Model/Diagnostic/InvariantViolation.php
1<?php
2
3declare(strict_types=1);
4
5namespace SqlSemantics\Platform\MySql\Model\Diagnostic;
6
7use LogicException;
8
9/**
10 * A candidate model that failed a correspondence or integrity check before publication.
11 *
12 * It is a defect of the library. The candidate is discarded; it is never
13 * returned as an operation or downgraded to an unknown value.
14 *
15 * @visibility public
16 * @example Raising the failure of an internal check
17 * \SqlSemantics\Platform\MySql\Model\Diagnostic\Check::invariant(false, 'The rendered SQL lost a predicate.') // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\InvariantViolation
18 */
19final class InvariantViolation extends LogicException
20{
21}
22