| Server IP : 172.67.187.206 / Your IP : 162.159.115.41 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/myschool/triamudom/tuprblearn/lib/horde/framework/Horde/Exception/ |
Upload File : |
<?php
/**
* Copyright 2008-2017 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.
*
* @author
* @category Horde
* @license http://www.horde.org/licenses/lgpl21 LGPL
* @package Exception
*/
/**
* Horde exception class that can wrap and set its details from PEAR_Error,
* Exception, and other objects with similar interfaces.
*
* @author
* @category Horde
* @copyright 2008-2017 Horde LLC
* @license http://www.horde.org/licenses/lgpl21 LGPL
* @package Exception
*/
class Horde_Exception_Wrapped extends Horde_Exception
{
/**
* Exception constructor.
*
* @param mixed $message The exception message, a PEAR_Error
* object, or an Exception object.
* @param int $code A numeric error code.
*/
public function __construct($message = null, $code = 0)
{
$previous = null;
if (is_object($message) &&
method_exists($message, 'getMessage')) {
if (empty($code) &&
method_exists($message, 'getCode')) {
$code = (int)$message->getCode();
}
if ($message instanceof Exception) {
$previous = $message;
}
if (method_exists($message, 'getUserinfo') &&
$details = $message->getUserinfo()) {
$this->details = $details;
} elseif (!empty($message->details)) {
$this->details = $message->details;
}
$message = (string)$message->getMessage();
}
parent::__construct($message, $code, $previous);
}
}