<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* @bundles/LeadBundle/Segment/Query/QueryException.php */
class __TwigTemplate_51d2b04e8eba11f22154b65de375697fa4e65e312122c0d832555cd2c662190e extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<?php

namespace Mautic\\LeadBundle\\Segment\\Query;

use Doctrine\\DBAL\\DBALException;

/**
 * @since 2.1.4
 */
class QueryException extends DBALException
{
    /**
     * @param \$alias
     * @param \$registeredAliases
     *
     * @return QueryException
     */
    public static function unknownAlias(\$alias, \$registeredAliases)
    {
        return new self(\"The given alias '\".\$alias.\"' is not part of \".
            'any FROM or JOIN clause table. The currently registered '.
            'aliases are: '.implode(', ', \$registeredAliases).'.');
    }

    /**
     * @param \$alias
     * @param \$registeredAliases
     *
     * @return QueryException
     */
    public static function nonUniqueAlias(\$alias, \$registeredAliases)
    {
        return new self(\"The given alias '\".\$alias.\"' is not unique \".
            'in FROM and JOIN clause table. The currently registered '.
            'aliases are: '.implode(', ', \$registeredAliases).'.');
    }
}
";
    }

    public function getTemplateName()
    {
        return "@bundles/LeadBundle/Segment/Query/QueryException.php";
    }

    public function getDebugInfo()
    {
        return array (  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "@bundles/LeadBundle/Segment/Query/QueryException.php", "/var/www/mautic/app/bundles/LeadBundle/Segment/Query/QueryException.php");
    }
}
