Pear
extends Horde_Exception_Pear
in package
This class converts PEAR errors into exceptions for the Components package.
Copyright 2010-2020 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Tags
Table of Contents
- catchError() : mixed
- Exception handling.
Methods
catchError()
Exception handling.
public
static catchError(mixed $result) : mixed
Parameters
- $result : mixed
-
The result to be checked for a PEAR_Error.
Tags
Return values
mixed —Returns the original result if it was no PEAR_Error.