Extract the error_get_last() handling into a separate Exception class.
authorGunnar Wrobel <p@rdus.de>
Thu, 11 Feb 2010 08:09:59 +0000 (09:09 +0100)
committerGunnar Wrobel <wrobel@temple.(none)>
Thu, 11 Feb 2010 10:07:57 +0000 (11:07 +0100)
commit6b8df9119dc8fc9727236940030f7c1b8fb55559
treefd93bc7bea481ebd2c5d33f514493d4253810967
parent46612f5f805800e9d52b7c0b9a8fb20b6ef5ae24
Extract the error_get_last() handling into a separate Exception class.

In all cases (Horde_Feed, Horde_Xml_Element, Horde_Yaml, and Horde_Http) where
we throw the result from error_get_last() into the exception class we know
exactly that we are doing so.

Rather than having the Exception class trying to determine what kind of
parameters it might have received we can use a separate class for that.
14 files changed:
framework/Exception/lib/Horde/Exception.php
framework/Exception/lib/Horde/Exception/LastError.php [new file with mode: 0644]
framework/Exception/lib/Horde/Exception/NotFound.php
framework/Exception/lib/Horde/Exception/PermissionDenied.php
framework/Exception/package.xml
framework/Exception/test/Horde/Exception/ExceptionTest.php
framework/Feed/lib/Horde/Feed/Exception.php
framework/Feed/package.xml
framework/Http/lib/Horde/Http/Exception.php
framework/Http/package.xml
framework/Xml_Element/lib/Horde/Xml/Element/Exception.php
framework/Xml_Element/package.xml
framework/Yaml/lib/Horde/Yaml/Exception.php
framework/Yaml/package.xml