GraphQL\Tests\Validator\AbstractQuerySecurityTest::createFormattedError PHP Method

createFormattedError() protected method

protected createFormattedError ( $max, $count, $locations = [] )
    protected function createFormattedError($max, $count, $locations = [])
    {
        return FormattedError::create($this->getErrorMessage($max, $count), $locations);
    }