1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
6: * @package Nette\Application\UI
7: */
8:
9:
10:
11: /**
12: * Link generation exception.
13: *
14: * @author David Grudl
15: * @package Nette\Application\UI
16: */
17: class NInvalidLinkException extends Exception
18: {
19: public function __construct($message = '', $code = 0, Exception $previous = NULL)
20: {
21: if (PHP_VERSION_ID < 50300) {
22: $this->previous = $previous;
23: parent::__construct($message, $code);
24: } else {
25: parent::__construct($message, $code, $previous);
26: }
27: }
28: }
29: