Highway to PSR2
[openemr.git] / portal / patient / fwk / libs / verysimple / XML / ParseException.php
blob213b151828334a52fff40f418e3f8a3467d95f34
1 <?php
2 /** @package verysimple::XML */
4 /**
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
11 * @version 1.0
13 class ParseException extends Exception
15 /**
16 * Redefine the exception so message isn't optional
18 * @param
19 * $message
20 * @param
21 * $code
23 public function __construct($message, $code = 0)
25 parent::__construct($message, $code);
28 /**
29 * String representation of exception
31 public function __toString()
33 $pair = explode("]", $this->message);
34 return "ParseException" . (count($pair) > 1 ? $pair [1] : $pair [0]);