diff options
Diffstat (limited to 'lib/querypath/src/QueryPath/IOException.php')
-rw-r--r-- | lib/querypath/src/QueryPath/IOException.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/querypath/src/QueryPath/IOException.php b/lib/querypath/src/QueryPath/IOException.php new file mode 100644 index 0000000..b23b381 --- /dev/null +++ b/lib/querypath/src/QueryPath/IOException.php @@ -0,0 +1,20 @@ +<?php +/** + * @file + * + * General IO exception. + */ + +namespace QueryPath; + +/** + * Indicates that an input/output exception has occurred. + * + * @ingroup querypath_core + */ +class IOException extends \QueryPath\ParseException { + public static function initializeFromError($code, $str, $file, $line, $cxt) { + $class = __CLASS__; + throw new $class($str, $code, $file, $line); + } +} |