__construct() 공개 메소드

Constructor.
public __construct ( string $message = null, code $code = null )
$message string Error message (non-translated).
$code code Error code.
예제 #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);
 }
예제 #2
0
 /**
  * Constructor.
  *
  * @param string $extension  The extension not supported on the server.
  * @param string $msg        A non-standard error message to use instead
  *                           of the default.
  */
 public function __construct($extension, $msg = null)
 {
     $this->extension = $extension;
     if (is_null($msg)) {
         $msg = sprintf(Horde_Imap_Client_Translation::r("The server does not support the %s extension."), $extension);
     }
     parent::__construct($msg, self::NOT_SUPPORTED);
 }
예제 #3
0
 /**
  * Constructor.
  *
  * @param string $msg      Error message.
  * @param integer $code    Error code.
  * @param integer $status  Server error status.
  * @param string $errtext  Server error text.
  * @param string $errcmd   The command that caused the error.
  */
 public function __construct($msg = null, $code = 0, $status = 0, $errtext = null, $errcmd = null)
 {
     $this->status = $status;
     if (!is_null($errtext)) {
         $this->details = $errtext;
     }
     if (!is_null($errcmd)) {
         $this->command = $errcmd;
     }
     parent::__construct($msg, $code);
 }
예제 #4
0
 /**
  * Constructor.
  *
  * @param string $feature  The feature not supported in POP3.
  */
 public function __construct($feature)
 {
     parent::__construct(sprintf(Horde_Imap_Client_Translation::r("%s not supported on POP3 servers."), $feature), self::NOT_SUPPORTED);
 }
예제 #5
0
 /**
  * Constructor.
  *
  * @param string $feature  The feature not supported in POP3.
  */
 public function __construct($feature)
 {
     parent::__construct(Horde_Imap_Client_Translation::r("%s not supported on POP3 servers."), self::NOT_SUPPORTED);
     $this->messagePrintf(array($feature));
 }
예제 #6
0
 /**
  * Constructor.
  *
  * @param string $charset  The charset that was attempted to be converted
  *                         to.
  */
 public function __construct($charset)
 {
     $this->charset = $charset;
     parent::__construct(Horde_Imap_Client_Translation::t("Cannot convert search query text to new charset"), self::BADCHARSET);
 }