cvs: phpdoc /en/language/predefined errorexception.xml exception.xml /en/language/predefined/errorexception construct.xml getseverity.xml
/en/language/predefined/exception clone.xml construct.xml getcode.xml getfile.xml getline.xml getmessage.xml gettrace.xml gettraceasstring.xml
tostring.xml
| From: | Hannes Magnusson | Date: | Mon, 14 Apr 2008 17:29:22 +0000 |
| Subject: | cvs: phpdoc /en/language/predefined errorexception.xml exception.xml /en/language/predefined/errorexception construct.xml getseverity.xml /en/language/predefined/exception clone.xml construct.xml getcode.xml getfile.xml getline.xml getmessage.xml gettrace.xml gettraceasstring.xml tostring.xml |
||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1503@lists.php.net to get a copy of this message | ||
bjori Mon Apr 14 17:29:22 2008 UTC
Added files:
/phpdoc/en/language/predefined errorexception.xml exception.xml
/phpdoc/en/language/predefined/errorexception construct.xml
getseverity.xml
/phpdoc/en/language/predefined/exception clone.xml construct.xml
getcode.xml getfile.xml
getline.xml getmessage.xml
gettrace.xml
gettraceasstring.xml
tostring.xml
Log:
Document Exception & ErrorException
http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/errorexception.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/errorexception.xml +++ phpdoc/en/language/predefined/errorexception.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <reference xml:id="class.errorexception" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>ErrorException</title> <partintro> <!-- {{{ ErrorException intro --> <section xml:id="errorexception.intro"> &reftitle.intro; <para> An Error Exception. </para> </section> <!-- }}} --> <section xml:id="errorexception.synopsis"> &reftitle.classsynopsis; <!-- {{{ Synopsis --> <classsynopsis> <ooclass><classname>ErrorException</classname></ooclass> <!-- {{{ Class synopsis --> <classsynopsisinfo> <ooclass> <classname>ErrorException</classname> </ooclass> <ooclass> <modifier>extends</modifier> <classname>Exception</classname> </ooclass> </classsynopsisinfo> <!-- }}} --> <classsynopsisinfo role="comment">Properties</classsynopsisinfo> <fieldsynopsis> <modifier>protected</modifier> <type>int</type> <varname linkend="errorexception.props.severity">severity</varname> </fieldsynopsis> <classsynopsisinfo role="comment">Methods</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.errorexception')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[1])" /> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.errorexception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> <classsynopsisinfo role="comment">Inherited methods</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis> <!-- }}} --> </section> <!-- {{{ ErrorException properties --> <section xml:id="errorexception.props"> &reftitle.properties; <variablelist> <varlistentry xml:id="errorexception.props.severity"> <term><varname>severity</varname></term> <listitem> <para>The severity of the exception</para> </listitem> </varlistentry> </variablelist> </section> <!-- }}} --> <!-- {{{ Example --> <section xml:id="errorexception.examples"> &reftitle.examples; <para> <example xml:id="errorexception.example.error-handler"><!-- {{{ --> <title><function>function-name</function> example</title> <para> Turn all error messages into ErrorException. </para> <programlisting role="php"> <![CDATA[ <?php function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, 0, $errno, $errfile, $errline); } set_error_handler("exception_error_handler"); /* Trigger exception */ strpos(); ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ Fatal error: Uncaught exception 'ErrorException' with message 'Wrong parameter count for strpos()' in /home/bjori/tmp/ex.php:8 Stack trace: #0 [internal function]: exception_error_handler(2, 'Wrong parameter...', '/home/bjori/php...', 8, Array) #1 /home/bjori/php/cleandocs/test.php(8): strpos() #2 {main} thrown in /home/bjori/tmp/ex.php on line 8 ]]> </screen> </example><!-- }}} --> </para> </section> </partintro> &language.predefined.errorexception.construct; &language.predefined.errorexception.getseverity; </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception.xml +++ phpdoc/en/language/predefined/exception.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <reference xml:id="class.exception" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>Exception</title> <partintro> <!-- {{{ Exception intro --> <section xml:id="exception.intro"> &reftitle.intro; <para> <ooclass><classname>Exception</classname></ooclass> is the base class for all Exceptions. </para> </section> <!-- }}} --> <section xml:id="exception.synopsis"> &reftitle.classsynopsis; <!-- {{{ Synopsis --> <classsynopsis> <ooclass><classname>Exception</classname></ooclass> <!-- {{{ Class synopsis --> <classsynopsisinfo> <ooclass> <classname>Exception</classname> </ooclass> </classsynopsisinfo> <!-- }}} --> <classsynopsisinfo role="comment">Properties</classsynopsisinfo> <fieldsynopsis> <modifier>protected</modifier> <type>string</type> <varname linkend="exception.props.message">message</varname> </fieldsynopsis> <fieldsynopsis> <modifier>pivate</modifier> <type>string</type> <varname linkend="exception.props.string">string</varname> </fieldsynopsis> <fieldsynopsis> <modifier>protected</modifier> <type>int</type> <varname linkend="exception.props.code">code</varname> </fieldsynopsis> <fieldsynopsis> <modifier>protected</modifier> <type>string</type> <varname linkend="exception.props.file">file</varname> </fieldsynopsis> <fieldsynopsis> <modifier>protected</modifier> <type>int</type> <varname linkend="exception.props.line">line</varname> </fieldsynopsis> <fieldsynopsis> <modifier>pivate</modifier> <type>array</type> <varname linkend="exception.props.trace">trace</varname> </fieldsynopsis> <classsynopsisinfo role="comment">Methods</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[1])" /> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis> <!-- }}} --> </section> <!-- {{{ Exception properties --> <section xml:id="exception.props"> &reftitle.properties; <variablelist> <varlistentry xml:id="exception.props.message"> <term><varname>message</varname></term> <listitem> <para>The exception message</para> </listitem> </varlistentry> <varlistentry xml:id="exception.props.string"> <term><varname>string</varname></term> <listitem> <para>Internal Exception name</para> </listitem> </varlistentry> <varlistentry xml:id="exception.props.code"> <term><varname>code</varname></term> <listitem> <para>The Exception code</para> </listitem> </varlistentry> <varlistentry xml:id="exception.props.file"> <term><varname>file</varname></term> <listitem> <para>The filename where the exception was thrown</para> </listitem> </varlistentry> <varlistentry xml:id="exception.props.line"> <term><varname>line</varname></term> <listitem> <para>The line where the exception was thrown</para> </listitem> </varlistentry> <varlistentry xml:id="exception.props.trace"> <term><varname>trace</varname></term> <listitem> <para>The stack trace</para> </listitem> </varlistentry> </variablelist> </section> <!-- }}} --> </partintro> &language.predefined.exception.construct; &language.predefined.exception.getmessage; &language.predefined.exception.getcode; &language.predefined.exception.getfile; &language.predefined.exception.getline; &language.predefined.exception.gettrace; &language.predefined.exception.gettraceasstring; &language.predefined.exception.tostring; &language.predefined.exception.clone; </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/errorexception/construct.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/errorexception/construct.xml +++ phpdoc/en/language/predefined/errorexception/construct.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="errorexception.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>ErrorException::__construct</refname> <refpurpose>Construct the exception</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <constructorsynopsis> <modifier>public</modifier> <methodname>ErrorException::__construct</methodname> <methodparam choice="opt"><type>string</type><parameter>message</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>code</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>severity</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>filename</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>lineno</parameter></methodparam> </constructorsynopsis> <para> Constructs the Exception. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>message</parameter></term> <listitem> <para> The Exception message to throw. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>code</parameter></term> <listitem> <para> The Exception code. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>severity</parameter></term> <listitem> <para> The severity level of the exception. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>filename</parameter></term> <listitem> <para> The filename where the exception is thrown. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>lineno</parameter></term> <listitem> <para> The line number where the exception is thrown. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/errorexception/getseverity.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/errorexception/getseverity.xml +++ phpdoc/en/language/predefined/errorexception/getseverity.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="errorexception.getseverity" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>ErrorException::getSeverity</refname> <refpurpose>Gets the exception severity</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>final</modifier> <modifier>public</modifier> <type>int</type><methodname>ErrorException::getSeverity</methodname> <void /> </methodsynopsis> <para> Returns the severity of the exception. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the severity level of the exception. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>ErrorException</function> example</title> <programlisting role="php"> <![CDATA[ <?php try { throw new ErrorException("Exception message", 0, 75); } catch(ErrorException $e) { echo "This exception severity is: " . $e->getSeverity(); } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ This exception severity is: 75 ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception/clone.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception/clone.xml +++ phpdoc/en/language/predefined/exception/clone.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="exception.clone" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Exception::__clone</refname> <refpurpose>Clone the exception</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>final</modifier> <modifier>private</modifier> <type>string</type><methodname>Exception::__clone</methodname> <void /> </methodsynopsis> <para> Clones the Exception. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns a clones object of the Exception. </para> </refsect1> <refsect1 role="errors"> &reftitle.errors; <para> Exceptions are <emphasis>not</emphasis> clonable. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception/construct.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception/construct.xml +++ phpdoc/en/language/predefined/exception/construct.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="exception.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Exception::__construct</refname> <refpurpose>Construct the exception</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <constructorsynopsis> <modifier>public</modifier> <methodname>Exception::__construct</methodname> <methodparam choice="opt"><type>string</type><parameter>message</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>code</parameter></methodparam> </constructorsynopsis> <para> Constructs the Exception. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>message</parameter></term> <listitem> <para> The Exception message to throw. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>code</parameter></term> <listitem> <para> The Exception code. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception/getcode.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception/getcode.xml +++ phpdoc/en/language/predefined/exception/getcode.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="exception.getcode" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Exception::getCode</refname> <refpurpose>Gets the Exception code</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>final</modifier> <modifier>public</modifier> <type>int</type><methodname>Exception::getCode</methodname> <void /> </methodsynopsis> <para> Returns the Exception code. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the Exception code as a <type>integer</type>. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>Exception::getCode</function> example</title> <programlisting role="php"> <![CDATA[ <?php try { throw new Exception("Some error message", 30); } catch(Exception $e) { echo "The exception code is: " . $e->getCode(); } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ The exception code is: 30 ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception/getfile.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception/getfile.xml +++ phpdoc/en/language/predefined/exception/getfile.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="exception.getfile" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Exception::getFile</refname> <refpurpose>Gets the file in which the exception occurred</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>final</modifier> <modifier>public</modifier> <type>string</type><methodname>Exception::getFile</methodname> <void /> </methodsynopsis> <para> Get the name of the file the exception was thrown from. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the filename in which the exception was thrown. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>Exception::getFile</function> example</title> <programlisting role="php"> <![CDATA[ <?php try { throw new Exception; } catch(Exception $e) { echo $e->getFile(); } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ /home/bjori/tmp/ex.php ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception/getline.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception/getline.xml +++ phpdoc/en/language/predefined/exception/getline.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="exception.getline" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Exception::getLine</refname> <refpurpose>Gets the line in which the exception occurred</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>final</modifier> <modifier>public</modifier> <type>string</type><methodname>Exception::getLine</methodname> <void /> </methodsynopsis> <para> Returns line number where the exception was thrown. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the line number where the exception was thrown. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>Exception::getLine</function> example</title> <programlisting role="php"> <![CDATA[ <?php try { throw new Exception("Some error message"); } catch(Exception $e) { echo "The exception was thrown on line: " . $e->getLine(); } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ The exception was thrown on line: 3 ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception/getmessage.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception/getmessage.xml +++ phpdoc/en/language/predefined/exception/getmessage.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="exception.getmessage" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Exception::getMessage</refname> <refpurpose>Gets the Exception message</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>final</modifier> <modifier>public</modifier> <type>string</type><methodname>Exception::getMessage</methodname> <void /> </methodsynopsis> <para> Returns the Exception message. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the Exception message as a string. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>Exception::getMessage</function> example</title> <programlisting role="php"> <![CDATA[ <?php try { throw new Exception("Some error message"); } catch(Exception $e) { echo $e->getMessage(); } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ Some error message ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception/gettrace.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception/gettrace.xml +++ phpdoc/en/language/predefined/exception/gettrace.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="exception.gettrace" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Exception::getTrace</refname> <refpurpose>Gets the stack trace</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>final</modifier> <modifier>public</modifier> <type>string</type><methodname>Exception::getTrace</methodname> <void /> </methodsynopsis> <para> Returns the Exception stack trace. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the Exception message as an <type>array</type> </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>Exception::getMessage</function> example</title> <programlisting role="php"> <![CDATA[ <?php function test() { throw new Exception; } try { test(); } catch(Exception $e) { var_dump($e->getTrace()); } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ array(1) { [0]=> array(4) { ["file"]=> string(22) "/home/bjori/tmp/ex.php" ["line"]=> int(7) ["function"]=> string(4) "test" ["args"]=> array(0) { } } } ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception/gettraceasstring.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception/gettraceasstring.xml +++ phpdoc/en/language/predefined/exception/gettraceasstring.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="exception.gettraceasstring" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Exception::getTraceAsString</refname> <refpurpose>Gets the stack trace as a string</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>final</modifier> <modifier>public</modifier> <type>string</type><methodname>Exception::getTraceAsString</methodname> <void /> </methodsynopsis> <para> Returns the Exception stack trace as a string. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the Exception stack trace as a string. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>Exception::getTraceAsString</function> example</title> <programlisting role="php"> <![CDATA[ <?php function test() { throw new Exception; } try { test(); } catch(Exception $e) { echo $e->getTraceAsString(); } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ #0 /home/bjori/tmp/ex.php(7): test() #1 {main} ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception/tostring.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception/tostring.xml +++ phpdoc/en/language/predefined/exception/tostring.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="exception.tostring" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Exception::__toString</refname> <refpurpose>String representation of the exception</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>string</type> <methodname>Exception::__toString</methodname> <void /> </methodsynopsis> <para> Returns the <type>string</type> representation of the exception. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the <type>string</type> representation of the exception. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>Exception::__toString</function> example</title> <programlisting role="php"> <![CDATA[ <?php try { throw new Exception("Some error message"); } catch(Exception $e) { echo $e; } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ exception 'Exception' with message 'Some error message' in /home/bjori/tmp/ex.php:3 Stack trace: #0 {main} ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/errorexception.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/errorexception.xml +++ phpdoc/en/language/predefined/errorexception.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <reference xml:id="class.errorexception" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>ErrorException</title> <partintro> <!-- {{{ ErrorException intro --> <section xml:id="errorexception.intro"> &reftitle.intro; <para> An Error Exception. </para> </section> <!-- }}} --> <section xml:id="errorexception.synopsis"> &reftitle.classsynopsis; <!-- {{{ Synopsis --> <classsynopsis> <ooclass><classname>ErrorException</classname></ooclass> <!-- {{{ Class synopsis --> <classsynopsisinfo> <ooclass> <classname>ErrorException</classname> </ooclass> <ooclass> <modifier>extends</modifier> <classname>Exception</classname> </ooclass> </classsynopsisinfo> <!-- }}} --> <classsynopsisinfo role="comment">Properties</classsynopsisinfo> <fieldsynopsis> <modifier>protected</modifier> <type>int</type> <varname linkend="errorexception.props.severity">severity</varname> </fieldsynopsis> <classsynopsisinfo role="comment">Methods</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.errorexception')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[1])" /> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.errorexception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> <classsynopsisinfo role="comment">Inherited methods</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis> <!-- }}} --> </section> <!-- {{{ ErrorException properties --> <section xml:id="errorexception.props"> &reftitle.properties; <variablelist> <varlistentry xml:id="errorexception.props.severity"> <term><varname>severity</varname></term> <listitem> <para>The severity of the exception</para> </listitem> </varlistentry> </variablelist> </section> <!-- }}} --> <!-- {{{ Example --> <section xml:id="errorexception.examples"> &reftitle.examples; <para> <example xml:id="errorexception.example.error-handler"><!-- {{{ --> <title><function>function-name</function> example</title> <para> Turn all error messages into ErrorException. </para> <programlisting role="php"> <![CDATA[ <?php function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, 0, $errno, $errfile, $errline); } set_error_handler("exception_error_handler"); /* Trigger exception */ strpos(); ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ Fatal error: Uncaught exception 'ErrorException' with message 'Wrong parameter count for strpos()' in /home/bjori/tmp/ex.php:8 Stack trace: #0 [internal function]: exception_error_handler(2, 'Wrong parameter...', '/home/bjori/php...', 8, Array) #1 /home/bjori/php/cleandocs/test.php(8): strpos() #2 {main} thrown in /home/bjori/tmp/ex.php on line 8 ]]> </screen> </example><!-- }}} --> </para> </section> </partintro> &language.predefined.errorexception.construct; &language.predefined.errorexception.getseverity; </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception.xml +++ phpdoc/en/language/predefined/exception.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <reference xml:id="class.exception" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>Exception</title> <partintro> <!-- {{{ Exception intro --> <section xml:id="exception.intro"> &reftitle.intro; <para> <ooclass><classname>Exception</classname></ooclass> is the base class for all Exceptions. </para> </section> <!-- }}} --> <section xml:id="exception.synopsis"> &reftitle.classsynopsis; <!-- {{{ Synopsis --> <classsynopsis> <ooclass><classname>Exception</classname></ooclass> <!-- {{{ Class synopsis --> <classsynopsisinfo> <ooclass> <classname>Exception</classname> </ooclass> </classsynopsisinfo> <!-- }}} --> <classsynopsisinfo role="comment">Properties</classsynopsisinfo> <fieldsynopsis> <modifier>protected</modifier> <type>string</type> <varname linkend="exception.props.message">message</varname> </fieldsynopsis> <fieldsynopsis> <modifier>pivate</modifier> <type>string</type> <varname linkend="exception.props.string">string</varname> </fieldsynopsis> <fieldsynopsis> <modifier>protected</modifier> <type>int</type> <varname linkend="exception.props.code">code</varname> </fieldsynopsis> <fieldsynopsis> <modifier>protected</modifier> <type>string</type> <varname linkend="exception.props.file">file</varname> </fieldsynopsis> <fieldsynopsis> <modifier>protected</modifier> <type>int</type> <varname linkend="exception.props.line">line</varname> </fieldsynopsis> <fieldsynopsis> <modifier>pivate</modifier> <type>array</type> <varname linkend="exception.props.trace">trace</varname> </fieldsynopsis> <classsynopsisinfo role="comment">Methods</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[1])" /> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis> <!-- }}} --> </section> <!-- {{{ Exception properties --> <section xml:id="exception.props"> &reftitle.properties; <variablelist> <varlistentry xml:id="exception.props.message"> <term><varname>message</varname></term> <listitem> <para>The exception message</para> </listitem> </varlistentry> <varlistentry xml:id="exception.props.string"> <term><varname>string</varname></term> <listitem> <para>Internal Exception name</para> </listitem> </varlistentry> <varlistentry xml:id="exception.props.code"> <term><varname>code</varname></term> <listitem> <para>The Exception code</para> </listitem> </varlistentry> <varlistentry xml:id="exception.props.file"> <term><varname>file</varname></term> <listitem> <para>The filename where the exception was thrown</para> </listitem> </varlistentry> <varlistentry xml:id="exception.props.line"> <term><varname>line</varname></term> <listitem> <para>The line where the exception was thrown</para> </listitem> </varlistentry> <varlistentry xml:id="exception.props.trace"> <term><varname>trace</varname></term> <listitem> <para>The stack trace</para> </listitem> </varlistentry> </variablelist> </section> <!-- }}} --> </partintro> &language.predefined.exception.construct; &language.predefined.exception.getmessage; &language.predefined.exception.getcode; &language.predefined.exception.getfile; &language.predefined.exception.getline; &language.predefined.exception.gettrace; &language.predefined.exception.gettraceasstring; &language.predefined.exception.tostring; &language.predefined.exception.clone; </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/errorexception/construct.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/errorexception/construct.xml +++ phpdoc/en/language/predefined/errorexception/construct.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="errorexception.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>ErrorException::__construct</refname> <refpurpose>Construct the exception</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <constructorsynopsis> <modifier>public</modifier> <methodname>ErrorException::__construct</methodname> <methodparam choice="opt"><type>string</type><parameter>message</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>code</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>severity</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>filename</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>lineno</parameter></methodparam> </constructorsynopsis> <para> Constructs the Exception. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>message</parameter></term> <listitem> <para> The Exception message to throw. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>code</parameter></term> <listitem> <para> The Exception code. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>severity</parameter></term> <listitem> <para> The severity level of the exception. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>filename</parameter></term> <listitem> <para> The filename where the exception is thrown. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>lineno</parameter></term> <listitem> <para> The line number where the exception is thrown. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/errorexception/getseverity.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/errorexception/getseverity.xml +++ phpdoc/en/language/predefined/errorexception/getseverity.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="errorexception.getseverity" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>ErrorException::getSeverity</refname> <refpurpose>Gets the exception severity</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>final</modifier> <modifier>public</modifier> <type>int</type><methodname>ErrorException::getSeverity</methodname> <void /> </methodsynopsis> <para> Returns the severity of the exception. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the severity level of the exception. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>ErrorException</function> example</title> <programlisting role="php"> <![CDATA[ <?php try { throw new ErrorException("Exception message", 0, 75); } catch(ErrorException $e) { echo "This exception severity is: " . $e->getSeverity(); } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ This exception severity is: 75 ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception/clone.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception/clone.xml +++ phpdoc/en/language/predefined/exception/clone.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="exception.clone" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Exception::__clone</refname> <refpurpose>Clone the exception</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>final</modifier> <modifier>private</modifier> <type>string</type><methodname>Exception::__clone</methodname> <void /> </methodsynopsis> <para> Clones the Exception. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns a clones object of the Exception. </para> </refsect1> <refsect1 role="errors"> &reftitle.errors; <para> Exceptions are <emphasis>not</emphasis> clonable. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception/construct.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception/construct.xml +++ phpdoc/en/language/predefined/exception/construct.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="exception.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Exception::__construct</refname> <refpurpose>Construct the exception</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <constructorsynopsis> <modifier>public</modifier> <methodname>Exception::__construct</methodname> <methodparam choice="opt"><type>string</type><parameter>message</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>code</parameter></methodparam> </constructorsynopsis> <para> Constructs the Exception. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>message</parameter></term> <listitem> <para> The Exception message to throw. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>code</parameter></term> <listitem> <para> The Exception code. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception/getcode.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception/getcode.xml +++ phpdoc/en/language/predefined/exception/getcode.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="exception.getcode" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Exception::getCode</refname> <refpurpose>Gets the Exception code</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>final</modifier> <modifier>public</modifier> <type>int</type><methodname>Exception::getCode</methodname> <void /> </methodsynopsis> <para> Returns the Exception code. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the Exception code as a <type>integer</type>. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>Exception::getCode</function> example</title> <programlisting role="php"> <![CDATA[ <?php try { throw new Exception("Some error message", 30); } catch(Exception $e) { echo "The exception code is: " . $e->getCode(); } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ The exception code is: 30 ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception/getfile.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception/getfile.xml +++ phpdoc/en/language/predefined/exception/getfile.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="exception.getfile" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Exception::getFile</refname> <refpurpose>Gets the file in which the exception occurred</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>final</modifier> <modifier>public</modifier> <type>string</type><methodname>Exception::getFile</methodname> <void /> </methodsynopsis> <para> Get the name of the file the exception was thrown from. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the filename in which the exception was thrown. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>Exception::getFile</function> example</title> <programlisting role="php"> <![CDATA[ <?php try { throw new Exception; } catch(Exception $e) { echo $e->getFile(); } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ /home/bjori/tmp/ex.php ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception/getline.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception/getline.xml +++ phpdoc/en/language/predefined/exception/getline.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="exception.getline" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Exception::getLine</refname> <refpurpose>Gets the line in which the exception occurred</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>final</modifier> <modifier>public</modifier> <type>string</type><methodname>Exception::getLine</methodname> <void /> </methodsynopsis> <para> Returns line number where the exception was thrown. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the line number where the exception was thrown. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>Exception::getLine</function> example</title> <programlisting role="php"> <![CDATA[ <?php try { throw new Exception("Some error message"); } catch(Exception $e) { echo "The exception was thrown on line: " . $e->getLine(); } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ The exception was thrown on line: 3 ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception/getmessage.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception/getmessage.xml +++ phpdoc/en/language/predefined/exception/getmessage.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="exception.getmessage" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Exception::getMessage</refname> <refpurpose>Gets the Exception message</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>final</modifier> <modifier>public</modifier> <type>string</type><methodname>Exception::getMessage</methodname> <void /> </methodsynopsis> <para> Returns the Exception message. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the Exception message as a string. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>Exception::getMessage</function> example</title> <programlisting role="php"> <![CDATA[ <?php try { throw new Exception("Some error message"); } catch(Exception $e) { echo $e->getMessage(); } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ Some error message ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception/gettrace.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception/gettrace.xml +++ phpdoc/en/language/predefined/exception/gettrace.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="exception.gettrace" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Exception::getTrace</refname> <refpurpose>Gets the stack trace</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>final</modifier> <modifier>public</modifier> <type>string</type><methodname>Exception::getTrace</methodname> <void /> </methodsynopsis> <para> Returns the Exception stack trace. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the Exception message as an <type>array</type> </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>Exception::getMessage</function> example</title> <programlisting role="php"> <![CDATA[ <?php function test() { throw new Exception; } try { test(); } catch(Exception $e) { var_dump($e->getTrace()); } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ array(1) { [0]=> array(4) { ["file"]=> string(22) "/home/bjori/tmp/ex.php" ["line"]=> int(7) ["function"]=> string(4) "test" ["args"]=> array(0) { } } } ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception/gettraceasstring.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception/gettraceasstring.xml +++ phpdoc/en/language/predefined/exception/gettraceasstring.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="exception.gettraceasstring" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Exception::getTraceAsString</refname> <refpurpose>Gets the stack trace as a string</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>final</modifier> <modifier>public</modifier> <type>string</type><methodname>Exception::getTraceAsString</methodname> <void /> </methodsynopsis> <para> Returns the Exception stack trace as a string. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the Exception stack trace as a string. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>Exception::getTraceAsString</function> example</title> <programlisting role="php"> <![CDATA[ <?php function test() { throw new Exception; } try { test(); } catch(Exception $e) { echo $e->getTraceAsString(); } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ #0 /home/bjori/tmp/ex.php(7): test() #1 {main} ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/predefined/exception/tostring.xml?view=markup&rev=1.1 Index: phpdoc/en/language/predefined/exception/tostring.xml +++ phpdoc/en/language/predefined/exception/tostring.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="exception.tostring" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Exception::__toString</refname> <refpurpose>String representation of the exception</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>string</type> <methodname>Exception::__toString</methodname> <void /> </methodsynopsis> <para> Returns the <type>string</type> representation of the exception. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns the <type>string</type> representation of the exception. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><function>Exception::__toString</function> example</title> <programlisting role="php"> <![CDATA[ <?php try { throw new Exception("Some error message"); } catch(Exception $e) { echo $e; } ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ exception 'Exception' with message 'Some error message' in /home/bjori/tmp/ex.php:3 Stack trace: #0 {main} ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->