Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

talk about error handling

  • Loading branch information...
commit d72913a1cc64b8b2e540b0206ff6b28a2cdd8319 1 parent a743bc0
@cweiske cweiske authored
Showing with 17 additions and 1 deletion.
  1. +17 −1 README.rst
18 README.rst
@@ -288,7 +288,23 @@ LRDD file
echo $x->toXML();
+Error handling
+When loading a file, exceptions of type ``XML_XRD_Exceptino`` may be thrown.
+All other parts of the code do not throw exceptions but fail gracefully by returning
+``null``, e.g. when a property does not exist.
+Using ``loadFile()`` may result in PHP warnings like::
+ Warning: simplexml_load_file( failed to open stream: Connection refused
+This cannot be prevented properly, so you either have to silence it with ``@``
+or fetch the file manually and use ``loadString()``.
Please sign in to comment.
Something went wrong with that request. Please try again.