ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
NestingException.php
Go to the documentation of this file.
1<?php
2
3
5
6
7use Exception;
8
9class NestingException extends \Exception
10{
14 protected $element;
15
24 public function __construct($message = "", $code = 0, Exception $previous = null, \DOMElement $element = null)
25 {
26 $this->element = $element;
27 parent::__construct($message, $code, $previous);
28 }
29
35 public function getElement()
36 {
37 return $this->element;
38 }
39}
An exception for terminatinating execution or to throw for unit testing.
__construct($message="", $code=0, Exception $previous=null, \DOMElement $element=null)
NestingException constructor.
getElement()
Get the element that caused the exception.
$code
Definition: example_050.php:99
catch(Exception $e) $message