Class Horde_Exception_LastError
Horde exception class that accepts output of error_get_last() as $code and
mask itself as that error.
Copyright 2008-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.horde.org/licenses/lgpl21.
-
Horde_Exception
-
Horde_Exception_LastError
Methods summary
public
|
#
__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
- $message
- <p>The exception message, a PEAR_Error
object, or an Exception object.</p>
- $code_or_lasterror
- <p>Either a numeric error code, or
an array from error_get_last().</p>
|