2007-12-13 17:47:35 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 06:41:36 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-12-13 17:47:35 +00:00
|
|
|
|
|
|
|
<chapter xml:id="com.error-handling" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
|
|
<title>Errors and error handling</title>
|
|
|
|
|
|
|
|
<!-- FIXME: this markup -->
|
|
|
|
<para>
|
|
|
|
<emphasis>Exceptions (PHP 5)</emphasis>
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
This extension will throw instances of the class <literal>com_exception</literal>
|
|
|
|
whenever there is a potentially fatal error reported by COM. All
|
|
|
|
COM exceptions have a well-defined <literal>code</literal> property that
|
|
|
|
corresponds to the HRESULT return value from the various COM operations.
|
|
|
|
You may use this code to make programmatic decisions on how to handle the
|
|
|
|
exception.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
</chapter>
|