eZ\Publish\Core\REST\Server\Output\ValueObjectVisitor\Exception::__construct PHP Method

__construct() public method

Construct from debug flag.
public __construct ( boolean $debug = false, Symfony\Component\Translation\TranslatorInterface $translator = null )
$debug boolean
$translator Symfony\Component\Translation\TranslatorInterface
    public function __construct($debug = false, TranslatorInterface $translator = null)
    {
        $this->debug = (bool) $debug;
        $this->translator = $translator;
    }