\Horde_Exception_LastError

Horde exception class that accepts output of error_get_last() as $code and mask itself as that error.

Summary

Methods
Properties
Constants
getLogLevel()
setLogLevel()
__construct()
$details
$logged
No constants found
No protected methods found
$_logLevel
N/A
No private methods found
No private properties found
N/A

Properties

$details

$details : string

Error details that should not be part of the main exception message, e.g. any additional debugging information.

Type

string

$logged

$logged : boolean

Has this exception been logged?

Type

boolean

$_logLevel

$_logLevel : integer

The log level to use. A Horde_Log constant.

Type

integer

Methods

getLogLevel()

getLogLevel() : integer

Get the log level.

Returns

integer —

The Horde_Log constant for the log level.

setLogLevel()

setLogLevel(mixed  $level) 

Sets the log level.

Parameters

mixed $level

The log level.

__construct()

__construct(mixed  $message = null, mixed  $code_or_lasterror = null) 

Exception constructor

If $lasterror is passed the return value of error_get_last() (or a matching format), the exception will be rewritten to have its file and line parameters match that of the array, and any message in the array will be appended to $message.

Parameters

mixed $message

The exception message, a PEAR_Error object, or an Exception object.

mixed $code_or_lasterror

Either a numeric error code, or an array from error_get_last().