CoreFiles by mySites.guru
NestingException.php36 lines, 794 bytes, from Joomla_5.4.6-Stable-Full_Package.zip
Raw History Compare with 5.4.5
md5
8f288acb4a2da968ebbd1d104d478264
sha1
42d0d97f1b0b79ffe3e858bbb877ae7cc7a5143e
sha256
8e68e56b19b0ac4fd120588b42e1f3512603e25abc6e11314382f9394b3b9b5e
<?php
namespace enshrined\svgSanitize\Exceptions;

use Exception;

class NestingException extends \Exception
{
    /**
     * @var \DOMElement
     */
    protected $element;

    /**
     * NestingException constructor.
     *
     * @param string           $message
     * @param int              $code
     * @param Exception|null   $previous
     * @param \DOMElement|null $element
     */
    public function __construct($message = "", $code = 0, ?Exception $previous = null, ?\DOMElement $element = null)
    {
        $this->element = $element;
        parent::__construct($message, $code, $previous);
    }

    /**
     * Get the element that caused the exception.
     *
     * @return \DOMElement
     */
    public function getElement()
    {
        return $this->element;
    }
}

The same content is in 117 releases, Joomla 5.2.0-beta3 to 6.3.0-alpha1. See them all, or every version of this file.