Files
GermanAirlinesVA-GraphQL/vendor/webonyx/graphql-php/src/Error/InvariantViolation.php
T
Your Name aae17f10a6 new Deps
2021-07-26 19:46:18 +02:00

21 lines
399 B
PHP

<?php
declare(strict_types=1);
namespace GraphQL\Error;
use LogicException;
/**
* Note:
* This exception should not inherit base Error exception as it is raised when there is an error somewhere in
* user-land code
*/
class InvariantViolation extends LogicException
{
public static function shouldNotHappen() : self
{
return new self('This should not have happened');
}
}