ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
NestingException.php
Go to the documentation of this file.
1 <?php
2 
3 
5 
6 
7 use Exception;
8 
9 class 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 }
$code
Definition: example_050.php:99
catch(Exception $e) $message
__construct($message="", $code=0, Exception $previous=null, \DOMElement $element=null)
NestingException constructor.
getElement()
Get the element that caused the exception.