2 /** @package verysimple::XML */
5 * Exception thrown by XMLUtil with an error occured during parsing
7 * @package verysimple::XML
8 * @author VerySimple Inc.
9 * @copyright 1997-2008 VerySimple, Inc.
10 * @license http://www.gnu.org/licenses/lgpl.html LGPL
13 class ParseException
extends Exception
16 * Redefine the exception so message isn't optional
23 public function __construct($message, $code = 0)
25 parent
::__construct($message, $code);
29 * String representation of exception
31 public function __toString()
33 $pair = explode("]", $this->message
);
34 return "ParseException" . (count($pair) > 1 ?
$pair [1] : $pair [0]);