Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
Exception

Functions

 __construct (PEAR_Error $error)
 Exception constructor.
 
static catchError ($result)
 Exception handling.
 
 getLogLevel ()
 Get the log level.
 
 setLogLevel ($level=0)
 Sets the log level.
 

Variables

integer $_logLevel = 0
 The log level to use.
 
static string $_pearDirectory = '@data_dir@'
 The absolute PEAR path to the translations for the default gettext handler.
 
boolean $logged = false
 Has this exception been logged?
 
*See the enclosed file LICENSE for license information(LGPL). If you *did not receive this file see http
 
*See the enclosed file LICENSE for license information(LGPL). If you *did not receive this file see http
 
*See the enclosed file LICENSE for license information(LGPL). If you *did not receive this file see http
 
*See the enclosed file LICENSE for license information(LGPL). If you *did not receive this file see http
 
*See the enclosed file LICENSE for license information(LGPL). If you *did not receive this file see http
 
*See the enclosed file LICENSE for license information(LGPL). If you *did not receive this file see http
 
*See the enclosed file LICENSE for license information(LGPL). If you *did not receive this file see http
 

Detailed Description

Function Documentation

◆ __construct()

__construct ( PEAR_Error $error)

Exception constructor.

Parameters
PEAR_Error$errorThe PEAR error.

◆ catchError()

static catchError ( $result)
static

Exception handling.

Parameters
mixed$resultThe result to be checked for a PEAR_Error.
Return values
mixedReturns the original result if it was no PEAR_Error.
Exceptions
Horde_Exception_PearIn case the result was a PEAR_Error.

◆ getLogLevel()

getLogLevel ( )

Get the log level.

Return values
integerThe Horde_Log constant for the log level.

◆ setLogLevel()

setLogLevel ( $level = 0)

Sets the log level.

Parameters
mixed$levelThe log level.

Variable Documentation

◆ $_logLevel

integer $_logLevel = 0
protected

The log level to use.

A Horde_Log constant.