diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/converter/exception.php | 30 | ||||
| -rw-r--r-- | lib/converter/html.php | 4 |
2 files changed, 32 insertions, 2 deletions
diff --git a/lib/converter/exception.php b/lib/converter/exception.php new file mode 100644 index 0000000..ef236a6 --- /dev/null +++ b/lib/converter/exception.php @@ -0,0 +1,30 @@ +<?php +/** + * Part of grauphel + * + * PHP version 5 + * + * @category Tools + * @package Grauphel + * @author Christian Weiske <cweiske@cweiske.de> + * @copyright 2014 Christian Weiske + * @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3 + * @link http://cweiske.de/grauphel.htm + */ +namespace OCA\Grauphel\Converter; + +/** + * Something went wrong during conversion + * + * @category Tools + * @package Grauphel + * @author Christian Weiske <cweiske@cweiske.de> + * @copyright 2014 Christian Weiske + * @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3 + * @version Release: @package_version@ + * @link http://cweiske.de/grauphel.htm + */ +class Exception extends \Exception +{ +} +?> diff --git a/lib/converter/html.php b/lib/converter/html.php index 1723a5b..eeb2b66 100644 --- a/lib/converter/html.php +++ b/lib/converter/html.php @@ -11,7 +11,7 @@ * @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3 * @link http://cweiske.de/grauphel.htm */ -namespace OCA\Grauphel\Lib\Converter; +namespace OCA\Grauphel\Converter; use \XMLReader; /** @@ -121,7 +121,7 @@ class Html $store .= nl2br(htmlspecialchars($reader->value)); break; default: - throw new \Exception( + throw new Exception( 'Unsupported XML node type: ' . $reader->nodeType ); } |
