MongoCursorException::getHost

(PECL mongo >= 1.0.0)

MongoCursorException::getHostThe hostname of the server that encountered the error

Beschreibung

public MongoCursorException::getHost ( ) : string

Returns the hostname of the server the query was sent too.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

Returns the hostname, or NULL if the hostname is unknown.