Horde_Imap_Client_Exception::__construct PHP Method

__construct() public method

Constructor.
public __construct ( string $message = null, code $code = null )
$message string Error message (non-translated).
$code code Error code.
    public function __construct($message = null, $code = null)
    {
        parent::__construct($message, $code);
        $this->raw_msg = $this->message;
        try {
            $this->message = Horde_Imap_Client_Translation::t($this->message);
        } catch (Horde_Translation_Exception $e) {
        }
    }

Usage Example

Esempio n. 1
0
 /**
  * Constructor.
  *
  * @param string $msg                                       Error message.
  * @param integer $code                                     Error code.
  * @param Horde_Imap_Client_Interaction_Server $server      Server ob.
  * @param Horde_Imap_Client_Interaction_Pipeline $pipeline  Pipeline ob.
  */
 public function __construct($msg = null, $code = 0, Horde_Imap_Client_Interaction_Server $server, Horde_Imap_Client_Interaction_Pipeline $pipeline)
 {
     $this->details = strval($server->token);
     $this->_pipeline = $pipeline;
     $this->_server = $server;
     parent::__construct($msg, $code);
 }
All Usage Examples Of Horde_Imap_Client_Exception::__construct