CoreFiles by mySites.guru
NestingException.php36 lines, 792 bytes, from Joomla_4.3.0-beta4-Beta-Full_Package.zip
Raw History Compare with 4.3.0-beta3
md5
f82643a1c16fa2f6c626b66d65bfdfdf
sha1
a2aa48d7543e45bc9536b1b1014d16cce2e29850
sha256
eae2620b69add9851e1ea8b59aaa73ee7f5dcc153fd77097723fa13a80d4d84f
<?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 132 releases, Joomla 4.1.1 to 5.2.0-beta2. See them all, or every version of this file.