// Thrown if the cache has become invalid.
const CACHEUIDINVALID = 11;
+ // Thrown if server denies the network connection.
+ const SERVER_CONNECT = 12;
+
/**
* Define a callback function used to log the exception. Will be passed
* a single parameter - a copy of this object.
if ($this->_stream === false) {
$this->_stream = null;
$this->_isSecure = false;
- throw new Horde_Imap_Client_Exception('Error connecting to IMAP server: [' . $error_number . '] ' . $error_string);
+ throw new Horde_Imap_Client_Exception('Error connecting to IMAP server: [' . $error_number . '] ' . $error_string, Horde_Imap_Client_Exception::SERVER_CONNECT);
}
stream_set_timeout($this->_stream, $this->_params['timeout']);