[doc-en] master: Clarify Error and Exception class descriptions (#5930)

From: Date: Mon, 12 Oct 2026 21:01:50 +0000
Subject: [doc-en] master: Clarify Error and Exception class descriptions (#5930)
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-23834@lists.php.net to get a copy of this message
Author: AYMAN BOUNAOUJ (aymanbouanouj) Committer: GitHub (web-flow) Pusher: kamil-tekiela Date: 2026-10-12T22:01:47+01:00 Commit: https://github.com/php/doc-en/commit/c4f95a6974306cf162dd4a6c89162cb310429762 Raw diff: https://github.com/php/doc-en/commit/c4f95a6974306cf162dd4a6c89162cb310429762.diff Clarify Error and Exception class descriptions (#5930) Changed paths: M language/predefined/error.xml M language/predefined/exception.xml Diff: diff --git a/language/predefined/error.xml b/language/predefined/error.xml index aa12ee6ec9da..5be64a352471 100644 --- a/language/predefined/error.xml +++ b/language/predefined/error.xml @@ -8,10 +8,12 @@ <section xml:id="error.intro"> &reftitle.intro; - <para> - <ooclass><classname>Error</classname></ooclass> is the base class for all - internal PHP errors. - </para> + <simpara> + <ooclass><classname>Error</classname></ooclass> is the base class for + errors that indicate programming mistakes. Such errors generally require + a correction to the program rather than being handled during normal + operation. + </simpara> </section> <section xml:id="error.synopsis"> diff --git a/language/predefined/exception.xml b/language/predefined/exception.xml index ce3505c879c1..1019d793d545 100644 --- a/language/predefined/exception.xml +++ b/language/predefined/exception.xml @@ -8,10 +8,10 @@ <section xml:id="exception.intro"> &reftitle.intro; - <para> + <simpara> <ooclass><classname>Exception</classname></ooclass> is the base class for - all user exceptions. - </para> + exceptions that can be handled during normal operation. + </simpara> </section> <section xml:id="exception.synopsis">

« previous php.doc.cvs (#23834) next »