<?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/AssetBundle/ErrorHandler/DropzoneErrorHandler.php */
class __TwigTemplate_8b819ad35ffecf2d2b99c6bd01e6e108 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\\AssetBundle\\ErrorHandler;

use Exception;
use Oneup\\UploaderBundle\\Uploader\\ErrorHandler\\ErrorHandlerInterface;
use Oneup\\UploaderBundle\\Uploader\\Response\\AbstractResponse;

class DropzoneErrorHandler implements ErrorHandlerInterface
{
    public function addException(AbstractResponse \$response, Exception \$exception): void
    {
        // HTTP status between 400 and 500 should be set here.
        // Dropzone will handle error messages itself then.
        // Unfortunatelly UploaderBundle will have this option in v 3.
        \$response['error'] = \$exception->getMessage();
    }
}
";
    }

    public function getTemplateName()
    {
        return "@bundles/AssetBundle/ErrorHandler/DropzoneErrorHandler.php";
    }

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

    public function getSourceContext()
    {
        return new Source("", "@bundles/AssetBundle/ErrorHandler/DropzoneErrorHandler.php", "/var/www/mautic/app/bundles/AssetBundle/ErrorHandler/DropzoneErrorHandler.php");
    }
}
